Python -c 'from skimage.data import download_all download_all()' Your Python is older, pip will find the most recent compatible version. To install the current scikit-image you’ll need at least Python 3.6. The package versions your application needs. With any existing system installation, can be easily removed, and contain only Virtual environments create a clean Python environment that does not interfere While it is possible to use pip without a virtual environment, it is not advised: Prerequisites to a pip install: You’re able to use your system’s command line to These install only scikit-image and its dependencies pip has an option to They install into an isolated environment, so they won’t conflictĭrawbacks are that the install can be large and you may not getĭocumentation, make sure it’s for the version you’ve installed (see Scikit-image and libraries it depends on, and other useful scientific In a single install these give you Python, You’ll see the version number if scikit-image is installed andĪn error message otherwise.
python -c "import dolfin print(dolfin._file_)"įile "/fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/_init_.py", line 40, in įile "/fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/common/_init_.py", line 3, in įrom mon import globalparametersįile "/fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/common/globalparameters.py", line 28, in įorm_compiler_parameters = Parameters("form_compiler", **default_jit_parameters())įile "/fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/cpp/common.py", line 2817, in _new_Parameter_init_įile "/fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/cpp/common.Python -c "import skimage print(skimage._version_)" The following line causes the following error. I'm also running python 2.7, would that cause any errors? Should it be there? That's what initially made me think it's not installed correctly. What does this mean? What am I doing wrong?ĭolfin does not appear in the list produced by running pip.get_installed_distributions(). TypeError: in method 'Parameters_add', argument 3 of type 'std::string' fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/cpp/common.pyc in add(self, args) fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/cpp/common.pyc in new_Parameter_init(self, *args, **kwargs)Ģ815 raise TypeError("expected a range tuple of size 2 for 'str' values and 3 for scalars")Ģ819 Parameters._init_ = _new_Parameter_init_
> 28 form_compiler_parameters = Parameters("form_compiler", **default_jit_parameters())Ģ9 parameters.add(form_compiler_parameters) fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/common/globalparameters.py in ()Ģ6 # Add form compiler parameters to global parameter setĢ7 if not parameters.has_parameter_set("form_compiler"): fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/common/ init.py in () fslhome/apack/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/ init.pyc in () TypeError Traceback (most recent call last) After following your approach when I run 'from dolfin import *' i get the following error. Maybe I am trying to import dolfin incorrectly.