diff --git a/README_developers.md b/README_developers.md index db2496dc1..6bef43c49 100644 --- a/README_developers.md +++ b/README_developers.md @@ -38,9 +38,13 @@ Once you are in the folder that contains the `environemnt.yml` file, execute the ```sh conda env create -n environment.yml conda activate +pip install pyside2==5.15.2.1 +pip install gmsh==4.11.1 +pip install pyepr-quantum==0.8.5.7 +pip install pyaedt==0.6.46 python -m pip install --no-deps -e . ``` -Note the use of `--no-deps`. Indeed the `environment.yml` already instructs conda to install all the necessary package dependencies. We therefore prevent `setup.py` from overwriting them with the pip-equivalent packages, which might not be compatible with conda. +Note the use of `--no-deps` in the final step. Indeed the `environment.yml` already instructs conda to install most necessary package dependencies. However, some packages (pyside2, gmsh, pyepr-quantum, and pyaedt) need to be installed manually via pip after the conda environment setup to avoid version conflicts. We therefore prevent `setup.py` from overwriting them with potentially incompatible packages. This creates a new environment with name `` with all the necessary library dependencies. Then it activates the new environment. @@ -54,6 +58,10 @@ If convenient, you can instead try to install directly in an existing conda envi ``` conda env update -n environment.yml conda activate +pip install pyside2==5.15.2.1 +pip install gmsh==4.11.1 +pip install pyepr-quantum==0.8.5.7 +pip install pyaedt==0.6.46 python -m pip install --no-deps -e . ``` diff --git a/environment.yml b/environment.yml index d5c9a9b9c..b8957326a 100644 --- a/environment.yml +++ b/environment.yml @@ -2,7 +2,7 @@ name: qiskit-metal channels: - conda-forge dependencies: - - python>=3.9 + - python=3.10 - addict==2.4.0 - descartes==1.1.0 - gdspy==1.6.12 @@ -12,9 +12,7 @@ dependencies: - numpy==1.24.2 - pandas==1.5.3 - pint==0.20.1 - - pyepr-quantum==0.8.5.7 - pygments==2.14.0 - - pyside2==5.15.8 - qdarkstyle==3.1 - qutip==4.7.1 - scipy==1.10.0 @@ -24,6 +22,3 @@ dependencies: - pyyaml==6.0 - pip==23.0 - cython<3.0.0 - - pip: - - pyaedt==0.6.46 - - gmsh==4.11.1