Virtualenv requirements not detected
On Windows XP, I used virtualenvwrapper-win to create a virtualenv, and pip install and easy_install to install a bunch of packages. At that point, my python code runs just fine from the command line.
I set up PyCharm to use that virtualenv, but my code wouldn't run from PyCharm b/c it can't find the right packages. So I manually added <pathtovirtualenv>\lib\site-packages to the list of paths for my virtualenv. Now my code runs, but PyCharm still doesn't detect the installed packages, so I get the "Package requirements missing" yellow bar at the top of all my files.
What's going on here?
I set up PyCharm to use that virtualenv, but my code wouldn't run from PyCharm b/c it can't find the right packages. So I manually added <pathtovirtualenv>\lib\site-packages to the list of paths for my virtualenv. Now my code runs, but PyCharm still doesn't detect the installed packages, so I get the "Package requirements missing" yellow bar at the top of all my files.
What's going on here?
Please sign in to leave a comment.
The behavior I'm seeing with PyCharm is consistent with what would happen if it ran [myvirtualenv]\Scripts\python.exe without first running [myvirtualenv]\Scripts\activate.bat to set up the environment. Is that the intended functionality?