question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use within a virtual environment?

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jonathanslenderscommented, Sep 27, 2018

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.

1reaction
jonathanslenderscommented, Sep 30, 2018

I’m closing this, if you don’t mind. Feel free to open again if needed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found