I was trying to find libraries that would help me for auto form filling . Someone suggested me Grab(a site scraping library) from http://pypi.python.org/pypi/grab/0.4.8 . I uncompressed tar.gz and then tried the following ,
python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
Does anyone know how to install it ?
Error is clear and simple.
ImportError: No module named setuptools
Please check, if you've installed setuptools for python3 or python2.
An example on archlinux, (python => python3), (python2 => python2)
Be careful with that
Please try with "python2 setup.py install"
Related
After many times I've tried installing opticspy as what the instructions written on its documentation page, this pops up Command
"python setup.py egg_info" failed with error code 1 in
C:\Users\[PC Name]\AppData\Local\Temp\pip-build-3xlemy6i\unwrap\ .
Also, when I downloaded the wheel file of the opticspy(opticspy-0.2.1-py2.py3-none-any.whl) , it successfully installed (as what the anaconda prompt says), but when I tried to import it on Spyder, it says..
Traceback (most recent call last):
File "<ipython-input-3-824cab08504e>", line 1, in <module>
import opticspy
File "C:\Users\[PC Name]\Anaconda3\lib\site-packages\opticspy\__init__.py", line 12, in
<module>
from . import aperture, interferometer_seidel,interferometer_zenike
File "C:\Users\[PC Name]\Anaconda3\lib\site-packages\opticspy\aperture.py", line 3, in
<module>
import diffraction as __diffraction__
ModuleNotFoundError: No module named 'diffraction'
Can someone help me? I really need this package for our Project Study. Thanks in advance!
The eggs/source code at PyPI seems to be buggy. The code at Github repository seems to be better but lacks setup.py. A broken and abandoned package.
You can try to clone https://github.com/Sterncat/opticspy and put it into site-packages/ directory manually. If you apply PR 21 yourself you get missed setup.py so you can run pip install . or python setup.py install.
So I was able to install sklearn for python2 but for some reason I having issues with doing the same for python3. I am getting this error:
Traceback (most recent call last):
File "/home/ajshack_pg/sklearn/__check_build/__init__.py", line 44, in <module>
from ._check_build import check_build # noqa
ImportError: /home/ajshack_pg/sklearn/__check_build/_check_build.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ajshack_pg/sklearn/__init__.py", line 133, in <module>
from . import __check_build
File "/home/ajshack_pg/sklearn/__check_build/__init__.py", line 46, in <module>
raise_build_error(e)
File "/home/ajshack_pg/sklearn/__check_build/__init__.py", line 41, in raise_build_error
%s""" % (e, local_dir, ''.join(dir_content).strip(), msg))
ImportError: /home/ajshack_pg/sklearn/__check_build/_check_build.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
___________________________________________________________________________
Contents of /home/ajshack_pg/sklearn/__check_build:
setup.py setup.pyc __init__.pyc
_check_build.so __init__.py
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.
If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.
If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.
I tried to go into the source directory and type in what they say to no avail. Any insight here?
Thanks!
If you installed sklearn from source for Python 2.x, some of its binaries may have persisted if you didn't fully remove all sklearn files. Python 2.x and 3.x are quite incompatible with each other, so this might be a reason why it's failing to build.
A few steps to take:
Consider using a virtualenv for your sklearn projects, especially if you have a lot of different packages or Python versions floating around. It's great for keeping different development environments with different Python packages and libraries isolated. Follow this guide if you don't have it already. When creating your virtualenv, make sure to install it with Python 3.x by using this command when creating your virtualenv:
virtualenv -p python3 envname
If building from source: Redownload the sklearn source for your Python 3 version and place it in your virtualenv. Closely follow all build instructions. That should hopefully give you a clean install of sklearn.
If installing with pip: Activate your virtualenv, then:
pip install -U scikit-learn after installing numpy and scipy.
i am trying to install through windows power shell and i get this error
C:\Users-\desktop\dist\twitter-1.10.0> python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup, find_packages
ImportError: No module named setuptools
PS C:\Users-\desktop\dist\twitter-1.10.0>
any help is appreciated.
As the Traceback says, you have no setuptools module installed. You can download it here and install it invoking python ez_setup.py from the directory where you have downloaded the file.
The title basically explains it all.
I am running Windows 8 (windows 7 was previously installed... If it helps with answering) and am using Python 2.7.
Upon using the code:
python setup.py install
I am getting this error:
C:\Users\Nicholas\Desktop\taggit>python setup.py install
Traceback (most recent call last):
File "setup.py", line 52, in
from setuptools import setup
ImportError: No module named setuptools
Any help?
Thanks in advance
Nicholas
You need to install setuptools, which allows packages to be configured for your Python installation. It is not included with the default Python installer.
From this link you can download Windows installers for many Python packages (I have linked it directly to setuptools). Make sure you download the version that matches your Python installation.
in Python 3:
pip3 install setuptools
And in Python 2.x:
pip install setuptools
I am trying to install a python module with the standard python setup.py install but I get the following error. I am fairly new to python but I have been able to install other modules in this way in the past. I am under the impression this module setuptools is not something I am supposed to have gotten separate from my python installation. Do I need to be in a specific directory or something?
Error:
Traceback (most recent call last):
File "setup.py", line 3 in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
Apparently, that package requires you to have setuptools to install it. Setuptools is a module that provides easy installation of Python packages. You can get it on pypi, here.
Surprisingly, setuptools does NOT come pre-packaged with Python, despite how often and casually everyone refers to it. I also had this problem when learning Python.
Setuptools is available on the Python Package Index.