How to use within a virtual environment?
See original GitHub issueIs it possible to start a ptpython session while in a virtualenv, where it doesn’t use the system python?
Note this is with ptpython installed in my system packages, not within the virtualenv.
For example, one can do virtualenv --python /path/to/my/python
to specify the interpreter. Is something is similar possible w/ ptpython?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Python Virtual Environments: A Primer
Virtual environments are a common and effective technique used in Python development. Gaining a better understanding of how they work, why you ...
Read more >venv — Creation of virtual environments — Python 3.11.1 ...
Create a virtual environment by specifying the target directory (absolute or relative to the current directory) which is to contain the virtual environment....
Read more >Pipenv & Virtual Environments
virtualenv is a tool to create isolated Python environments. virtualenv creates a folder which contains all the necessary executables to use the packages...
Read more >Virtualenv and venv: Python virtual environments explained
To install virtualenv, just use pip install virtualenv . To create a virtual environment directory with it, type virtualenv /path/to/directory .
Read more >Create Virtual Environment using “virtualenv” and add it to ...
Install the virtualenv · Create a virtual environment · Create an environment with a specific version of Python · Create an environment from...
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 Free
Top 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
Yes, it is possible. ptpython has to be installed in each virtualenv. Do this by going into the virtualenv and use “pip install”. Then, once you are in the environment and type “ptpython” it will use that virtualenv.
I’m closing this, if you don’t mind. Feel free to open again if needed.