0π
Iβve found that this is a common problem, already discussed here.
As you can see from the discussion the values are easily obtained with pip freeze
for the virtualenv
is giving problems and so I solved this problem with the help of this anwer using the same approach as the First Attempt.
- Disabled Django support (Settings -> Languages & Framework -> Django)
- Open the Python Console (Tools -> Python Console)
-
Do:
from pip.operations import freeze x = freeze.freeze() for p in x: print (p)
You may copy the response content to requirements.txt
or change the script above to save the requirements directly to a file.
1π
Maybe you donβt have virtualenvwrapper
installed? workon
is a virtualenvwrapper
command, not a virtualenv
command. You can either install virtualenvwrapper
and use workon
or try using virtualenv
βs command like this:
source /path_to_your_virtualenv/bin/activate
If you do have virtualenvwrapper
, then you can create a virtual environment using mkvirtualenv -p <your_python> <your_env_name>
and use it inside PyCharm going to preferences
> Project interpreter
.