
Then, I decided to put them for testing and experimentation. matplotlib and pandas are not really necessary, but I was asked if matplotlib or pandas would work in PyTorch. As of this writing (August-September 2020), the latest PyTorch version is 1.6.Īlternatively, you could create and install a conda environment a specific PyTorch version with:Ĭonda create -n my-torch python=3.6 pytorch=1.3 torchvision matplotlib pandas -c pytorch -yĬonda will resolve the dependencies and versions of the other packages automatically, or let you know your options. Note: If you you don’t specify a version, conda will install the latest PyTorch. Inside the new environment, install PyTorch and related packages with:Ĭonda install python=3.6 pytorch torchvision matplotlib pandas -c pytorch If you prefer do it manually, use this example:Ĭreate a conda environment with conda create -n my-torch python=3.7 -yĪctivate the new environment with conda activate my-torch I tried conda install python3.6, but it takes more 10 mins to run and still.

Now you have two environments with which to work.

Create a new environment named p圓, install Python 3.5: conda create -name p圓 python3.5. Create a Python 2 environment named py2, install Python 2.7: conda create -name py2 python2.7.

To be incompatible with the existing python installation in your environment: Switching to an environment is called activating it. Post that, you need to activate the environment using the command below.
conda create -nWhen using the Anaconda installation process conda install gurobi to install Gurobi, you may receive an error such as: UnsatisfiableError: The following specifications were found If you’d like to install the new version of Python in a particular environment, you could use the conda create command.
