Difference between revisions of "Python"
From Wasya Wiki
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | pip3 install --upgrade pip --user ## From: https://askubuntu.com/questions/905196/pip-fails-with-readtimeouterror | ||
+ | ## sudo pip --default-timeout=1000 install jupyter | ||
+ | pip install -U --timeout 10000 torch ## timeout in seconds ## 2.2.2, but 2.6.0 ? | ||
python3 -m pip install --user --upgrade pip | python3 -m pip install --user --upgrade pip | ||
Line 4: | Line 8: | ||
python3 -m venv zenv | python3 -m venv zenv | ||
. zenv/bin/activate | . zenv/bin/activate | ||
+ | |||
+ | pip install opencv-python | ||
+ | pip install scipy | ||
+ | pip install trimesh | ||
+ | pip install imageio tensorboardX pandas matplotlib | ||
+ | pip install -r requirements.txt | ||
+ | |||
+ | deactivate | ||
+ | |||
+ | == python 2.7 == | ||
+ | |||
+ | sudo apt-get install python2.7-dev | ||
+ | sudo apt install python-pip | ||
+ | pip2 install virtualenv | ||
+ | python2.7 -m virtualenv zenv | ||
+ | . zenv/bin/activate |
Latest revision as of 01:30, 2 February 2025
pip3 install --upgrade pip --user ## From: https://askubuntu.com/questions/905196/pip-fails-with-readtimeouterror ## sudo pip --default-timeout=1000 install jupyter pip install -U --timeout 10000 torch ## timeout in seconds ## 2.2.2, but 2.6.0 ?
python3 -m pip install --user --upgrade pip python3 -m pip --version python3 -m venv zenv . zenv/bin/activate
pip install opencv-python pip install scipy pip install trimesh pip install imageio tensorboardX pandas matplotlib pip install -r requirements.txt
deactivate
python 2.7
sudo apt-get install python2.7-dev sudo apt install python-pip pip2 install virtualenv python2.7 -m virtualenv zenv . zenv/bin/activate