PyCharm giving error while setting up interpreter: no such option: –python
Question:
Answers:
Pipenv is different from pip, and you’d have to install Pipenv separately, then point Pycharm at it
https://pipenv.kennethreitz.org/en/latest/install/#installing-pipenv
How to setup pipenv in Pycharm is documented here
https://www.jetbrains.com/help/pycharm/pipenv.html
Otherwise, you should chose an option other than Pipenv
this happens when you give the wrong " pipenv.exe " address to pycharm as pipenv executer like the following snapshot.
To create a pipenv interpreter, first you need to install pipenv with following command :
pip install pipenv
then make sure your computer knows where to look for the executer files of pipenv which is the Scripts folder in python directory of your device
if you have pipenv there you are all set.
go to pycharm > settings > interpreter settings , click show more from frop down menu, click plus to add new interpreter and finally choose "pipenv"
IMPORTANT :
-
set base interpreter to python.exe file from python directory
-
set pipenv executable to pipenv.exe file from python directory/Scripts
you are all set to use your pipenv interpreter now 🙂
quick check list
- make sure you add the python folder and also Scripts folder to the path on your system
- make sure you are pointing to pipenv.exe file instead of other files in Scripts folder
Pipenv is different from pip, and you’d have to install Pipenv separately, then point Pycharm at it
https://pipenv.kennethreitz.org/en/latest/install/#installing-pipenv
How to setup pipenv in Pycharm is documented here
https://www.jetbrains.com/help/pycharm/pipenv.html
Otherwise, you should chose an option other than Pipenv
this happens when you give the wrong " pipenv.exe " address to pycharm as pipenv executer like the following snapshot.
To create a pipenv interpreter, first you need to install pipenv with following command :
pip install pipenv
then make sure your computer knows where to look for the executer files of pipenv which is the Scripts folder in python directory of your device
if you have pipenv there you are all set.
go to pycharm > settings > interpreter settings , click show more from frop down menu, click plus to add new interpreter and finally choose "pipenv"
IMPORTANT :
-
set base interpreter to python.exe file from python directory
-
set pipenv executable to pipenv.exe file from python directory/Scripts
you are all set to use your pipenv interpreter now 🙂
quick check list
- make sure you add the python folder and also Scripts folder to the path on your system
- make sure you are pointing to pipenv.exe file instead of other files in Scripts folder