Last active
August 29, 2022 03:34
-
-
Save mGalarnyk/4e48b0dc307a2d50f4b7701dbc54573d to your computer and use it in GitHub Desktop.
Install Anaconda on Ubuntu (Python 2) for my blog https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a#.8fn64sfa5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to home directory | |
cd ~ | |
# You can change what anaconda version you want at | |
# https://repo.continuum.io/archive/ | |
wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh | |
bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda | |
rm Anaconda2-4.2.0-Linux-x86_64.sh | |
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc | |
# Refresh basically | |
source .bashrc | |
conda update conda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I have a problem, I follow the steps to install anaconda in ubuntu14.04, when I type python not open and show this:
python
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 563, in
main()
File "/usr/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 247, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 237, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 578, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 524, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 408, in _init_posix
from _sysconfigdata import build_time_vars
File "/usr/lib/python2.7/_sysconfigdata.py", line 6, in
from _sysconfigdata_nd import *
ImportError: No module named _sysconfigdata_nd
what could be the problem ?