Can't autodetect pipenv on 2018.2.1
See original GitHub issueEnvironment data
- VS Code version: 1.21.0: 2018 Feb
- Extension version (available under the Extensions sidebar): 2018.2.1
- OS and version: macOs High Sierra 10.13.3
- Python version: CPython 3.6.4
- Type of virtual environment used (if applicable): pipenv
- Relevant/affected Python packages and their versions:
pipenv==11.3.2
Actual behavior
When open a project with Pipfile
, the interpreter is bare Python 3.6.4
Expected behavior
When open a project with Pipfile
, the interpreter will be autodetected as Python3.6.4(pipenv)
and uses the virtualenv created by pipenv
Steps to reproduce:
pipenv install
to create a virtualenv forrequests_html
- Open the project in VSCode
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Only linting messages
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
[Extension Host] (node:33660) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ workbench.main.js:sourcemap:257
Issue Analytics
- State:
- Created 6 years ago
- Comments:23 (4 by maintainers)
Top Results From Across the Web
How do I properly setup pipenv in PyCharm? - Stack Overflow
@AlmogCohen unfortunately PyCharm doesn't use pipenv for installing new modules, even if the project interpreter is linked to pipenv environment ...
Read more >Configure a Pipenv environment | PyCharm Documentation
If PyCharm cannot autodetect the pipenv executable, specify a path to it. Click OK to complete the task. Once you click OK, PyCharm...
Read more >Frequently Encountered Pipenv Problems - Read the Docs
This is usually a result of mixing Pipenv with system packages. We strongly recommend installing Pipenv in an isolated environment. Uninstall all existing ......
Read more >Pipenv: A Guide to the New Python Packaging Tool
txt file), pip doesn't always produce the same environment. At the moment, you can't easily replicate the exact environment you have on your...
Read more >Common Pipenv Errors and How to Solve Them: Why Won't it ...
Here, you'll learn how to troubleshoot Pipenv installation and locking ... the package does not exist or can't be found for another reason....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, after I tried several times, uninstall and reinstall vscode from homebrew.
It is working now! Congrats!
Thanks for all you’ve done here.
launchctl getenv LANG
wasn’t returning anything for me, but $LANG is set by the time I get to .bash_profile, so I added this to my .bash_profile:launchctl setenv LC_ALL $LANG