New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error creating virtualenv with python3.6 #1059
Comments
Hi, virtualenv and python3 venv own module are 2 totally different projects/things. venv is doing the same than virtualenv but is directly integrated in python3 itself. Based on your input I'd say python3-venv may be to reinstall ( So may you close the issue ? (I'm not maintainer here) |
Reinstalling didn't work. I will close this issue now. I will update if I have any more information. |
@animeshb , you don't have more output after
? |
Nothing after that line.
In the
|
I can only redirect you to one of many pages matching this error (it's a known prob with debian/ubuntu systems): https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847 what about |
The original poster's problem is due to not having the 'python3.6-venv' package installed, which can be verified using Docker if you don't have access to a buster Debian: $ docker run --rm -it debian:buster /bin/bash
$ apt update
...
$ apt install python3.5 python3.6 python3.5-venv
...
$ python3.6 -m venv venv
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/venv/bin/python3.6', '-Im', 'ensurepip', '--upgrade', '--default-pip']
$ rm -rf venv
$ apt install python3.6-venv
...
$ python3.6 -m venv venv
... success Install 'python3.6-venv', and it should work. |
Wow, it didn't occur to me at all that there would be a version specific -venv package. Installing this did the trick. @gst and @eukaryote Thank you so much for spending your time on this issue. |
The solution by @eukaryote worked for me. Thanks for posting this! |
Wrongly configured locale can also induce this problem, as this answer solves my problem that produces the same error message as OP. Try execute:
|
only one datapoint, but messing about with a fresh virtualbox ubuntu bionic, i found that |
I'm on Debian testing/buster and I'm having this same issue, while both |
The debian bug for this is here btw: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901601 |
|
Just leaving a comment here, for the ones who arrive after me, googling for the same problem: the same applies to 3.7 of python, you have to install |
Just FYI, the above solution does not in fact work for python 3.7.
(btw, note that all |
you're talking about |
I was also facing the same issue. [niraj@abc ~]$/python/v3.7.0/bin/python3 -m venv avd After adding libffi3.3 on my LD_LIBRARY path it works setenv LD_LIBRARY_PATH /libffi/v3.3/lib64 |
Fisrt I've installed with |
@eukaryote still didn't work. Can you help? I am on Ubuntu 18.04 LTS |
This work for me on Ubuntu 16.04.6. Thx |
thank you |
Wow, installing the specific version of venv worked for me. In my case python3.8-venv. Thanks @jrperin |
Installing the specific version worked for me too: python3.8-venv |
If OS version is 18.04 or 20.04:
Additional Supporting Softwares |
Earlier today I installed python3.6 on my debian machine. Python3.6 was made available in buster distribution. When I try to create a virtualenv with python3.6.
gives the following error.
I do have
python3-venv (3.5.3-1)
installed. Why do I get this error? If I run the commandit says
I don't have trouble creating virtualenvs using the default python3 version (3.5.3).
Also , I noticed that I can create a virtualenv as follows:
The text was updated successfully, but these errors were encountered: