Cannot install Python 3.6.8 in virtualenv on Ubuntu 16.04How to leave/exit/deactivate a python virtualenv?Use different Python version with virtualenvNo module named pkg_resourcesHow to install Maven 3 on Ubuntu 17.04/16.10/16.04 LTS/15.10/15.04/14.10/14.04 LTS/13.10/13.04 by using apt-get?Using Python 3 in virtualenvvarying python versions installing eric on ubuntu 16.04 using virtualenvinstalling and configuring virtualenv on ubuntuHow to install python3.7 and create a virtualenv with pip on Ubuntu 18.04?install python 3.5.2 into ubuntu 16.04Pip install failing in virtualenv but not using system python
Grepping string, but include all non-blank lines following each grep match
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Air travel with refrigerated insulin
Personal or impersonal in a technical resume
How do I fix the group tension caused by my character stealing and possibly killing without provocation?
Check if object is null and return null
What is the meaning of the following sentence?
What is this high flying aircraft over Pennsylvania?
Do I have to take mana from my deck or hand when tapping a dual land?
Why do Radio Buttons not fill the entire outer circle?
Typing CO_2 easily
Isometric embedding of a genus g surface
Unable to disable Microsoft Store in domain environment
Giving feedback to someone without sounding prejudiced
Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?
How to test the sharpness of a knife?
How do I prevent inappropriate ads from appearing in my game?
When and why was runway 07/25 at Kai Tak removed?
How much do grades matter for a future academia position?
Identifying "long and narrow" polygons in with PostGIS
Anime with legendary swords made from talismans and a man who could change them with a shattered body
Why does a 97 / 92 key piano exist by Bösendorfer?
Difference between shutdown options
Is there a way to play vibrato on the piano?
Cannot install Python 3.6.8 in virtualenv on Ubuntu 16.04
How to leave/exit/deactivate a python virtualenv?Use different Python version with virtualenvNo module named pkg_resourcesHow to install Maven 3 on Ubuntu 17.04/16.10/16.04 LTS/15.10/15.04/14.10/14.04 LTS/13.10/13.04 by using apt-get?Using Python 3 in virtualenvvarying python versions installing eric on ubuntu 16.04 using virtualenvinstalling and configuring virtualenv on ubuntuHow to install python3.7 and create a virtualenv with pip on Ubuntu 18.04?install python 3.5.2 into ubuntu 16.04Pip install failing in virtualenv but not using system python
I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:
1) sudo apt-get update
2) sudo apt-get upgrade
3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/
4) Verified installation with python3.6 -V
(console returned "Python 3.6.8")
5) Installed pip3 with sudo apt-get -y install python3-pip
6) Installed virtualenv with sudo pip3 install virtualenv
7) Upgraded pip3 with sudo -H pip3 install --upgrade pip
8) Created virtualenv with virtualenv -p python3 venv
When I activated my virtual env and checked Python version with python3 -V
, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.
python-3.x virtualenv ubuntu-16.04
add a comment |
I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:
1) sudo apt-get update
2) sudo apt-get upgrade
3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/
4) Verified installation with python3.6 -V
(console returned "Python 3.6.8")
5) Installed pip3 with sudo apt-get -y install python3-pip
6) Installed virtualenv with sudo pip3 install virtualenv
7) Upgraded pip3 with sudo -H pip3 install --upgrade pip
8) Created virtualenv with virtualenv -p python3 venv
When I activated my virtual env and checked Python version with python3 -V
, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.
python-3.x virtualenv ubuntu-16.04
add a comment |
I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:
1) sudo apt-get update
2) sudo apt-get upgrade
3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/
4) Verified installation with python3.6 -V
(console returned "Python 3.6.8")
5) Installed pip3 with sudo apt-get -y install python3-pip
6) Installed virtualenv with sudo pip3 install virtualenv
7) Upgraded pip3 with sudo -H pip3 install --upgrade pip
8) Created virtualenv with virtualenv -p python3 venv
When I activated my virtual env and checked Python version with python3 -V
, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.
python-3.x virtualenv ubuntu-16.04
I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:
1) sudo apt-get update
2) sudo apt-get upgrade
3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/
4) Verified installation with python3.6 -V
(console returned "Python 3.6.8")
5) Installed pip3 with sudo apt-get -y install python3-pip
6) Installed virtualenv with sudo pip3 install virtualenv
7) Upgraded pip3 with sudo -H pip3 install --upgrade pip
8) Created virtualenv with virtualenv -p python3 venv
When I activated my virtual env and checked Python version with python3 -V
, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.
python-3.x virtualenv ubuntu-16.04
python-3.x virtualenv ubuntu-16.04
asked Mar 7 at 22:01
Ashley LiuAshley Liu
87111
87111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Looks like you need to create the virtualenv using the specific python version.
virtualenv -p python3.6 venv
I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment
python3 --version
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55053494%2fcannot-install-python-3-6-8-in-virtualenv-on-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looks like you need to create the virtualenv using the specific python version.
virtualenv -p python3.6 venv
I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment
python3 --version
add a comment |
Looks like you need to create the virtualenv using the specific python version.
virtualenv -p python3.6 venv
I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment
python3 --version
add a comment |
Looks like you need to create the virtualenv using the specific python version.
virtualenv -p python3.6 venv
I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment
python3 --version
Looks like you need to create the virtualenv using the specific python version.
virtualenv -p python3.6 venv
I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment
python3 --version
answered Mar 8 at 0:06
eddyizmeddyizm
5417
5417
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55053494%2fcannot-install-python-3-6-8-in-virtualenv-on-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown