pip install <package> --upgrade --ignore-installed
pip install --upgrade --force-reinstall --ignore-installed <package>
if you want to downgrade to a version
conda install jupyter notebook
pip install notebook --upgrade [because default notebook in conda is installed by pip]
conda upgrade notebook
pip install matplotlib
pip install scikit-image [for skimage]
pip install scikit-learn [for sklearn]
pip install imageio
pip install numpy opencv-python lmdb
pip install tensorboardX
pip install utils
pip install torchsummary
pip install h5py
pip install torchvision
pip install pandas
pip install path.py
pip install imgaug # https://github.com/aleju/imgaug
pip install cython
git clone https://github.com/waleedka/coco.git
cd coco/PythonAPI
pip install pycocotools
Prerequisites for imgaug [in linux didn't need]:
pip install six numpy scipy Pillow matplotlib scikit-image opencv-python imageio Shapely
If Shapely fails:
Download Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely
and use:
pip install Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl
pip install torchviz
https://github.com/szagoruyko/pytorchviz/blob/master/examples.ipynb
pip install pydot
conda install -c anaconda graphviz
**Update Visual C++
https://superuser.com/questions/1369402/where-can-i-download-visual-c-2015-build-tools
https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe?fixForIE=.exe.
For windows need to install:
Microsoft Visual C++ 14.0 is required.
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15
https://stackoverflow.com/questions/40504552/
https://i.stack.imgur.com/imICM.png
Matlab Engine: [Only supports python 3.4 3.5 and 3.6]
Run Anaconda Prompt as Admin
conda create --name torch36 python=3.6
[installed 3.6.8]
activate torch36
cd C:\Program Files\MATLAB\R2018b\extern\engines\python
python setup.py install
conda install pytorch -c pytorch
[pytorch: 1.0.1-py3.6_cuda100_cudnn7_1 pytorch]
pip install scipy
pip install numpy opencv-python lmdb
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 918: ordinal not in range(128)
serialization.py by modifying line 418 unpickler = pickle_module.Unpickler(f, encoding='latin1').
C:\Users\rb\Anaconda3\envs\torch36\lib\site-packages\torch\serialization.py
Check where the python is running from in notebook:
import sys
print(sys.executable)
print(sys.path)
pip install --upgrade --force-reinstall --ignore-installed <package>
if you want to downgrade to a version
conda install jupyter notebook
pip install notebook --upgrade [because default notebook in conda is installed by pip]
conda upgrade notebook
pip install matplotlib
pip install scikit-image [for skimage]
pip install scikit-learn [for sklearn]
pip install imageio
pip install numpy opencv-python lmdb
pip install tensorboardX
pip install utils
pip install torchsummary
pip install h5py
pip install torchvision
pip install pandas
pip install path.py
pip install imgaug # https://github.com/aleju/imgaug
pip install cython
git clone https://github.com/waleedka/coco.git
cd coco/PythonAPI
pip install pycocotools
Prerequisites for imgaug [in linux didn't need]:
pip install six numpy scipy Pillow matplotlib scikit-image opencv-python imageio Shapely
If Shapely fails:
Download Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely
and use:
pip install Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl
pip install torchviz
https://github.com/szagoruyko/pytorchviz/blob/master/examples.ipynb
pip install pydot
conda install -c anaconda graphviz
**Update Visual C++
https://superuser.com/questions/1369402/where-can-i-download-visual-c-2015-build-tools
https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe?fixForIE=.exe.
For windows need to install:
Microsoft Visual C++ 14.0 is required.
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15
https://stackoverflow.com/questions/40504552/
https://i.stack.imgur.com/imICM.png
Matlab Engine: [Only supports python 3.4 3.5 and 3.6]
Run Anaconda Prompt as Admin
conda create --name torch36 python=3.6
[installed 3.6.8]
activate torch36
cd C:\Program Files\MATLAB\R2018b\extern\engines\python
python setup.py install
conda install pytorch -c pytorch
[pytorch: 1.0.1-py3.6_cuda100_cudnn7_1 pytorch]
pip install scipy
pip install numpy opencv-python lmdb
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 918: ordinal not in range(128)
serialization.py by modifying line 418 unpickler = pickle_module.Unpickler(f, encoding='latin1').
C:\Users\rb\Anaconda3\envs\torch36\lib\site-packages\torch\serialization.py
Check where the python is running from in notebook:
import sys
print(sys.executable)
print(sys.path)