I have a python project working fine in Aptana.
I then started to use pipenv
for the project's environment management and now I can't get Aptana to use that environment.
I also set up a new project then added it to Aptana and Aptana uses a 3.7 version of python instead of the pipenv
python 2.7.
Any suggestions on where to start looking?
Get the location where pipenv is storing the virtual environment with:
pipenv --venv
It will return a folder: [environment_folder]
Also, get at hand the location of the original python executable, the one used by pipenv: [python_folder]
Go to the existing project where you want to use pipenv or create a new python project.
Go to Eclipse menu: Project > Properties
Choose: PyDev - Interpreter
Click: "Click here to configure an interpreter not listed"
Choose "New"
from python interpreter
Use the environment_folder output of pipenv --venv
Set Interpreter Executable to: [environment_folder]\Scripts\python.exe
When propmted, select folders to add to system PYTHONPATH:
Add those folders. Accept and apply.
And everything should be ready.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With