sympy / scipy-2017-codegen-tutorial

SymPy code generation tutorial at SciPy 2017
http://www.sympy.org/scipy-2017-codegen-tutorial/
Other
61 stars 26 forks source link

conda check fails #21

Closed moorepants closed 7 years ago

moorepants commented 7 years ago

I don't understand this:

(codegen17) moorepants@garuda:scipy-2017-codegen-tutorial(master)$ python test_installation.py 
conda is needed (either anaconda or miniconda from https://www.continuum.io/downloads)
(try rerunning this script under conda if you are using for system's python distribution)
(codegen17) moorepants@garuda:scipy-2017-codegen-tutorial(master)$ ipython
Python 3.6.1 | packaged by conda-forge | (default, May 23 2017, 14:16:20) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import conda
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-0106f2bb058e> in <module>()
----> 1 import conda

ModuleNotFoundError: No module named 'conda'

In [2]:                                                                                                                                                                                                            
Do you really want to exit ([y]/n)? 
(codegen17) moorepants@garuda:scipy-2017-codegen-tutorial(master)$ conda install conda
Fetching package metadata ...........

InstallError: Error: 'conda' can only be installed into the root environment

Is conda supposed to import?

isuruf commented 7 years ago

You can't use conda in a conda environment except for the root environment. https://github.com/sympy/scipy-2017-codegen-tutorial/blob/master/test_installation.py should not import conda.