@km-git-acc @dhjpolymath @mariotrevi
Hi All, there are very good reasons to use a virtual environment. One of them is you don't want to mess with your system files and potentially make your machine unbootable!
@mariotrevi
The following error indicates that you don't have pip in your system.
Error: Command '['/home/david/dbn/dbn_upper_bound/venv/bin/python3',
'-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero
exit status 1.
As this StackOverflow post suggests (https://stackoverflow.com/questions/26215790/venv-doesnt-create-activate-script-python3), you can do the following
- Create a virtual environment without pip
- Add pip into this newly created virtual env
The steps are
- python3 -m venv --without-pip testvenv (creates a virtual env called testvenv)
- source testvenv/bin/activate (get inside the virtual env)
- curl https://bootstrap.pypa.io/get-pip.py | python (install pip)
- deactivate (get out of the venv)
- source testvenv/bin/activate (get back in the venv)
Hope this helps resolve. Let me know if you still have issues. But we need to make sure venv works and not be messing with the system files. Towards that end, I have to revert some recent changes in the import statement.
I am happy to help out!
Sujit
@km-git-acc @dhjpolymath @mariotrevi
Hi All, there are very good reasons to use a virtual environment. One of them is you don't want to mess with your system files and potentially make your machine unbootable!
@mariotrevi
The following error indicates that you don't have pip in your system.
Error: Command '['/home/david/dbn/dbn_upper_bound/venv/bin/python3',
'-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero
exit status 1.
As this StackOverflow post suggests (https://stackoverflow.com/questions/26215790/venv-doesnt-create-activate-script-python3), you can do the following
The steps are
Hope this helps resolve. Let me know if you still have issues. But we need to make sure venv works and not be messing with the system files. Towards that end, I have to revert some recent changes in the import statement.
I am happy to help out!
Sujit