Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install photontorch via python pip




photontorch - PhotonTorch: a photonic simulation framework based on the deep learning framework PyTorch., it belongs to Classifiers:

- Topic :: Scientific/Engineering :: Artificial Intelligence
- Topic :: Scientific/Engineering :: Physics

When you know about this project and you want to new install photontorch to support your project or you get trouble as ModuleNotFoundError: No module named "photontorch" or ImportError: cannot import name "photontorch" in your project, let follow this tutorial to install photontorch



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_photontorch_env

- Active the virtual environment

test_photontorch_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_photontorch_env

- Active the virtual environment

source test_photontorch_env/bin/active


Step 2: OK, now, let flow below content to start the installation photontorch

To install photontorch on Windows(CMD):

py -m pip install photontorch

To install photontorch on Unix/macOs:

pip install photontorch


Step 3: If you want to install a specific photontorch version, add ==<photontorch version> to the end command line

Example:

pip install photontorch==0.1.0


Please see the version list below table:

VersionReleased dateCommand
photontorch 0.4.12021-02-13T08:13:05Windows:

py -m pip install photontorch==0.4.1

Unix/macOs:

pip install photontorch==0.4.1

photontorch 0.4.02020-10-26T10:05:53Windows:

py -m pip install photontorch==0.4.0

Unix/macOs:

pip install photontorch==0.4.0

photontorch 0.3.32020-09-16T10:33:05Windows:

py -m pip install photontorch==0.3.3

Unix/macOs:

pip install photontorch==0.3.3

photontorch 0.3.22020-09-03T07:32:30Windows:

py -m pip install photontorch==0.3.2

Unix/macOs:

pip install photontorch==0.3.2

photontorch 0.3.12020-09-02T09:09:25Windows:

py -m pip install photontorch==0.3.1

Unix/macOs:

pip install photontorch==0.3.1

photontorch 0.3.02020-08-20T07:37:36Windows:

py -m pip install photontorch==0.3.0

Unix/macOs:

pip install photontorch==0.3.0

photontorch 0.1.02020-08-04T07:24:20Windows:

py -m pip install photontorch==0.1.0

Unix/macOs:

pip install photontorch==0.1.0


Step 4: Otherwise, you can install photontorch from local archives:

Download the distribution file from photontorch-0.4.1.tar.gz or the specific photontorch version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_photontorch_downloaded_file>

On Unix/macOs:

pip install <path_to_photontorch_downloaded_file>


List distribution:


Project link:

- Homepage