pytorch @ python3.8 environment construction with pipenv

What is pipenv

What is pytorch

This goal

Execution environment

install pipenv

$ pip install pipenv

Initialized with python3.8

$ pipenv --python 3.8

pytorch preparation

The libraries required for execution are "torch" and "torchvision". Install these.

$ pipenv install torch torchvision

If you do this, you will get an error out of ten. Maybe it's because I'm going to install an inconsistent version of the package. Since it is necessary to specify the version of the package including the version of python, I will bring it directly from the Package Download Site.

Right-click the link below ⇒ Copy the link address cu102/torch-1.6.0-cp38-cp38-win_amd64.whl cu102/torchvision-0.7.0-cp38-cp38-win_amd64.whl

Install again. Now install directly from the URL.

pipenv isntall https://download.pytorch.org/whl/cu102/torch-1.6.0-cp38-cp38-win_amd64.whl https://download.pytorch.org/whl/cu102/torchvision-0.7.0-cp38-cp38-win_amd64.whl

Messa It will take some time, so wait. .. .. When completed without errors, do the following:

$ pipenv run python -c "import torch; import torchvision; print(torch.__version__); print(torchvision.__version__)"  
1.6.0
0.7.0

Since the version is output as above, it was installed.

Recommended Posts

pytorch @ python3.8 environment construction with pipenv
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Get started with Python! ~ ① Environment construction ~
Python environment construction
Environment construction (python)
python environment construction
Python --Environment construction
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
python environment construction
Let's get along with Python # 0 (Environment construction)
python windows environment construction
homebrew python environment construction
Mac environment construction Python
Virtual environment with Python 3.6
Python environment construction @ Win7
Collecting information from Twitter with Python (Environment construction)
Poetry-virtualenv environment construction with python of centos-sclo-rh ~ Notes
First python ① Environment construction with pythonbrew & Hello World !!
From Python environment construction to virtual environment construction with anaconda
Python + Anaconda + Pycharm environment construction
Install Python environment with Anaconda
PyTorch C ++ (LibTorch) environment construction
Manage python environment with virtualenv
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
Build python3 environment with ubuntu 16.04
ML environment construction with Miniconda
Python environment construction For Mac
Anaconda3 python environment construction procedure
Build python environment with direnv
Python3 environment construction (for beginners)
Python environment construction and TensorFlow
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
[Python] OpenCV environment construction with Docker (cv2.imshow () also works)
Data analysis environment construction with Python (IPython notebook + Pandas)
Web application made with Python3.4 + Django (Part.1 Environment construction)
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Environment construction of python and opencv
Prepare pipenv environment with amazon Linux 2
Try running python in a Django environment created with pipenv
OpenJTalk on Windows10 (Speak Japanese with Python from environment construction)
Python environment construction memo on Windows 10
Anaconda python environment construction on Windows 10
Build python virtual environment with virtualenv
ruby environment construction with aws EC2
[LDAP environment construction: 7] Add / search / change / delete users with Python
Build Mysql + Python environment with docker
Easy Jupyter environment construction with Cloud9
Create a virtual environment with Python!
Python environment construction memo on Mac
Python environment construction (pyenv, anaconda, tensorflow)
[Python3] Development environment construction << Windows edition >>
Building a virtual environment with Python 3
Python environment construction (pyenv + poetry + pipx)
Environment construction of python3.8 on mac
Automate environment construction with Shell Script
Python3 TensorFlow for Mac environment construction
Emacs Python development environment construction memo