manoharan-lab / holopy

Hologram processing and light scattering in python
GNU General Public License v3.0
131 stars 50 forks source link

Installation #422

Open vebrahimi1990 opened 11 months ago

vebrahimi1990 commented 11 months ago

I have been trying to install Holopy using the conda: "conda install -c conda-forge holopy". However, I cannot pass Solving environement in Anaconda Prompt. Is there any other way around it to install this package? Or should I use a specific version of conda?

MarnixMeersman commented 10 months ago

I am experiencing the same issue. My setup: Apple Silicon M1 ARM chip Python 3.11 Conda-forge:osx-arm64

Error Message: Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

vnmanoharan commented 7 months ago

We do not yet have osx-arm64 builds, but this is planned for version 3.6. However, version 3.6 will only support Python 3.9 (to avoid breaking any current code that relies on HoloPy). Version 3.7 should include support for recent versions of Python.

samatwork85 commented 3 months ago

I had the same problem, but I used this method to solve it. Now, I can use HoloPy.

Installation Installation Check Step 1: Check Your Current Python Version

python --version

Step 2: Create a New Conda Environment with the Desired Python Version

conda create --name myenv python=3.6.2

HoloPy runs on perfectly on Python version 3.6.2

Proceed ([y]/n) Type y

Step 3: Activate the New Environment

conda activate myenv_HoloPy

Use any of these two commands to install Jupyter

conda install jupyterlab. conda install jupyter

If it takes a long time and the process is stuck at the solving environment step, uninstall the previously installed Anaconda or Jupyter version.

Launch Jupyter Notebook from your Conda environment; simply run the following command:

jupyter notebook Installing Holopy HoloPy runs on Python version 3.6.2. HoloPy is available on conda-forge, so you can install it within a shell, terminal, or command prompt:

conda install -c conda-forge holopy

The following packages will be SUPERSEDED y a higher-priority channel: Certifi>>>

Proceed ([y]/n)?>>>> Type y

Install matplotlib

conda install -c conda-forge matplotlib