Y
Y
Yakov Feldman2019-11-22 21:27:36
Python
Yakov Feldman, 2019-11-22 21:27:36

How to restore pip inside virtual environment?

When trying to upgrade inside the virtual environment, the old version disappeared and the new one did not appear
. What should I do?

You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

(env2018) D:\prj\env2018>pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 2.1MB/s
Installing collected packages: pip
  Found existing installation: pip 18.1
    Uninstalling pip-18.1:
Could not install packages due to an EnvironmentError: [WinError 5] Отказано в доступе: 'd:\\prj\\env2018\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.


(env2018) D:\prj\env2018>python -m pip install --upgrade pip
D:\prj\env2018\Scripts\python.exe: No module named pip

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yakov Feldman, 2019-11-22
@jfeldman

curl https://bootstrap.pypa.io/get-pip.py | python
from command line from virtual env

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question