Python Openfermion Package - Module Not Found Errors
I'm trying to run a script that, among other things, relies on the Openfermion package from Google. I'm also using QuTiP, PySCF, and Openfermion-PySCF. When trying to run my script
Solution 1:
The following steps are for setting up your Conda environment properly:
Step 1: Create and activate a new Conda environment (You can replace test
by your preferred name)
conda create -n test python=3.7 -y
conda activate test
Step 2: Install the latest openfermion
, openfermionpyscf
and pyscf
pip install -U openfermion openfermionpyscf pyscf
Step 3: Testing
$ python
Python 3.7.10 (default, Feb 262021, 10:16:00)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type"help", "copyright", "credits"or"license"for more information.
>>> import openfermion
>>> import openfermionpyscf
>>> from openfermionpyscf import run_pyscf
>>> import pyscf
If there is no error in this step then you should be able to run your code.
NOTE: Answer is updated based on the follow-up discussion.
Post a Comment for "Python Openfermion Package - Module Not Found Errors"