I'm trying to install a package using python setup.py build
, but it fails when it cannot find setuptools.version
. In fact:
import setuptools
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/gpajer/anaconda/lib/python2.7/site- packages/setuptools/__init__.py", line 11, in <module>
import setuptools.version
ImportError: No module named version
Shouldn't there be a file .../anaconda/lib/python2.7/site-packages/setuptools/version.py
? There is no such file. Any ideas?
From https://anaconda.org/anaconda/setuptools :
To install this package with conda run:
conda install -c anaconda setuptools=21.2.1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.