Skip to content
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

Specify python3 in installation instructions. #5552

Merged
merged 1 commit into from
May 20, 2019

Conversation

shivanshu1234
Copy link
Contributor

Closes #5550

Copy link

@jasonaowen jasonaowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I wonder if can just use python -m venv venv

@jasonaowen
Copy link

Thanks, I wonder if can just use python -m venv venv

That would work (I just tested it), but we'd also need to update at least the Ubuntu required packages to include python3-venv:

$ python3 -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: ['/tmp/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

@shivanshu1234
Copy link
Contributor Author

Yes, can confirm this. Ubuntu Bug #1532231

@jasonaowen
Copy link

It looks like the python3-venv packages exists on Xenial (16.04) and later. After installing it on my 18.04 machine, I was able to run python -m venv venv successfully, and it created an environment where python was linked to the system python3.6.

@stsewd stsewd requested a review from a team April 13, 2019 20:37
@humitos
Copy link
Member

humitos commented May 20, 2019

Thanks!

@humitos humitos merged commit c7ec857 into readthedocs:master May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation instructions for virtualenv should specify python3
4 participants