Open Fscipioni opened 2 years ago
The problem seems to be that the Py6S module and the sixs executable can't be found.
How are you running IPython and Jupyter? You'll need to activate the conda environment first (using conda activate py6s-env
) and then run them from within that command-line - for example, running the following commands in order:
conda activate py6s-env
ipython
and then once IPython has opened, you can run:
from Py6S import *
SixS.test()
and it should work.
As for PyCharm: I don't use PyCharm myself, so I don't know the details about its configuration - but you'll need to configure it to use the conda environment that you just created.
I tried, but after I activate the env, ipython can't be found, even though I have it installed.
zsh: command not found: ipython
If I type
ipython
outside the environment, I have no problems
Ok, that's because you'll need to install ipython into the environment. The conda environment is completely separate from every other installation of Python you have on your system: so any other libraries that you want must be installed into that environment - and that includes ipython and jupyter.
So, activate the environment and then run conda install ipython jupyter
and then try running ipython
from within the environment.
That worked! Thanks so much!!
If I can make a suggestion, the fact that IPython and other libraries should be installed is not obvious for people with no or low experience with python, or coding in general. Adding a few more lines in the installation instructions can avoid many headaches :D
Hello, I'm having several problems installing and running Py6S:
Then, I run pip install py6s, which solved the module errore for Ipython and Jupiter, but not for PyCharm.
I then tried to continue with the Quick Start commands, but it returns this error: