Python Env Issues and Workaroud Ubuntu 16 LTS
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-tensorflow-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-ubuntu-16-04
1.Installing Python
Ubuntu 16 comes with Python 2.7 and 3.5 both.
To install pip3...
sudo apt-get install python3-pip
pip3 -V
pip3 install --upgrade pip
2.Virtual Env
a)sudo -H pip3 install virtualenv
b) virtualenv -p /usr/bin/python3 menv35
c) source ~/venv35/bin/activate
d)
python -m pip install --upgrade pip
Ub untu18 https://linoxide.com/linux-how-to/setup-python-virtual-environment-ubuntu/
2# Centos python
python -m pip install --upgrade pip
3. Anaconda Issues.........
anaconda sucks...when one installs packages not included with it..
as dependencies fail and give unstatisfied error.
./configure --prefix=/somewhere/else/than/usr/local
If you get the following error messagezipimport.ZipImportError: can't decompress data; zlib not available install the ‘zlib1g-dev’ package
apt-get install zlib1g-dev
./configure --prefix=/home/adarsh/work/python36 --with-zlib
sudo make
sudo make install
=====================
While installing pkgs if under proxy..u face errors like
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fcf0da195f8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/matplotlib/
use
python3 -mpip install -U matplotlib --proxy="http://usid:pwd@proxy.domain.com:8080"
Comments
Post a Comment