Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to use pip inside venv? #4904

Unanswered
itsankitkp asked this question in Q&A
Discussion options

Steps tried:

  1. cargo build --release --features ssl,jit
  2. target/release/rustpython -m venv venv
  3. venv/bin/activate
  4. rustpython --install-pip get-pip
  5. pip install guincorn
 pip3 install gunicorn
Traceback (most recent call last):
  File "/home/ankit/RustPython/venv/bin/pip3", line 5, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

Different variant of #4 tried is target/release/rustpython -u --install-pip ensurepip --user, venv/bin/rustpython --install-pip (as per as docs)
for #5 pip3 install gunicorn. Also tried it directly

 venv/bin/rustpython -m pip install gunicorn
/home/ankit/RustPython/venv/bin/rustpython: No module named pip

Not sure what I am missing.

You must be logged in to vote

Replies: 1 comment

Comment options

I found it doesn't work. This is a bug.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.