Skip to content

Error creating Virtual Python environment while creating Azure Functions Project in Visual Studio Code #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RamakantShankar opened this issue Sep 26, 2018 · 2 comments
Labels
info-needed See https://aka.ms/azcodeissuereporting

Comments

@RamakantShankar
Copy link

RamakantShankar commented Sep 26, 2018

Repro steps:
<Enter steps to reproduce issue>

Action: azureFunctions.createFunction
Error type: Error
Error Message: Failed to run "func_env\Scripts\activate && pip install ptvsd" command. Check output window for more details.

Version: 0.11.0
OS: win32

Running command: "func_env\Scripts\activate && pip install ptvsd "...
Collecting ptvsd
Using cached https://files.pythonhosted.org/packages/5e/15/78a8be571d6a450c6ad36a675e4384bb4f33f9e920cfcc74b6e3a9683520/ptvsd-4.1.3-py3-none-win_amd64.whl
Installing collected packages: ptvsd
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '......\func_env\Lib\site-packages\ptvsd\_vendored\pydevd\pydevd_attach_to_process\winappdbg\win32\pycache\context_amd64.cpython-37.pyc'

You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Error: Failed to run "func_env\Scripts\activate && pip install ptvsd" command. Check output window for more details.

@ejizba
Copy link
Contributor

ejizba commented Oct 17, 2018

Sorry for the delayed response. Does this still repro for you? Can you try running func_env\Scripts\activate && pip install ptvsd manually from the command line? That issue is coming from 'pip' so I'm not sure if our extension can fix it directly

@ejizba ejizba added the info-needed See https://aka.ms/azcodeissuereporting label Oct 17, 2018
@ejizba
Copy link
Contributor

ejizba commented Nov 28, 2018

Closing due to lack of response. Feel free to re-open with more info

Also related to #821

@ejizba ejizba closed this as completed Nov 28, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed See https://aka.ms/azcodeissuereporting
Projects
None yet
Development

No branches or pull requests

2 participants