Pipenv --python 3.7.5 fails with exception
Trying to use Pipenv to create a virtual environment in Ubuntu 19.04 and getting the following error, I've tried searching for a solution but I still don't really understand the problem.
Why does the follwing error occur as python-pip is installed on the system
ModuleNotFoundE
mattb@mattb-
Creating a virtualenv for this project…
Using /usr/bin/python3.7m (3.7.5) to create virtualenv…
⠋Running virtualenv with interpreter /usr/bin/python3.7m
Using base prefix '/usr'
/usr/lib/
import imp
New python executable in /home/mattb/
Also creating executable in /home/mattb/
Installing setuptools, pkg_resources, pip, wheel...
Complete output from command /home/mattb/
Traceback (most recent call last):
File "<stdin>", line 9, in <module>
File "/usr/share/
ModuleNotFoundE
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 11, in <module>
ImportError: cannot import name 'main' from 'pip' (/usr/share/
-------
...Installing setuptools, pkg_resources, pip, wheel...done.
Traceback (most recent call last):
File "/usr/lib/
main()
File "/usr/lib/
symlink=
File "/usr/lib/
download=
File "/usr/lib/
call_
File "/usr/lib/
% (cmd_desc, proc.returncode))
OSError: Command /home/mattb/
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
ModuleNotFoundE
Original exception was:
Traceback (most recent call last):
File "/usr/lib/
main()
File "/usr/lib/
symlink=
File "/usr/lib/
download=
File "/usr/lib/
call_
File "/usr/lib/
% (cmd_desc, proc.returncode))
OSError: Command /home/mattb/
Virtualenv location:
Creating a Pipfile for this project…
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Matt Bayliss
- Solved:
- Last query:
- Last reply: