Closed mecworks closed 7 years ago
Has anyone tried to install the new python packages on a raspberry pi for python 3??
I'm still failing using pip3 install adafruit-ads1x15 (or any other of the adafruit libraries)
I seem to have made progress with this after installing ez_setup inside my venv
wget https://bootstrap.pypa.io/ez_setup.py -O - | python && pip3 install Adafruit_gpio
...[Snip]...
Successfully downloaded Adafruit-gpio adafruit-pureio spidev
Apologies it took a while to look at this but it looks like there was an odd interaction with the ez_setup script and Python 3. Ez_setup is there to install setuptools automatically for python 2, like if you load a Raspberry Pi with Raspian from scratch and don't have pip or anything else installed (unfortunately they don't include the python-setuptools package by default). The problem is ez_setup doesn't seem to work with Python 3 and ultimately isn't necessary since Python 3 includes setuptools. Long story short it's a weird quirk of supporting both Python 2 and 3 that can luckily be worked around in the setup.py.
I just updated all the libraries, including this one, on pip to have a fix. Give a pip3 install of the library a try again (you might want to add the --force option to force it to reinstall in case you installed already). Thanks for raising the issue and investigating!
I am using Ubuntu 16.04LTS on a desktop computer with both python2.7 and python3.5 installed. All packages installed correctly using python 2.7 however, when installing using python 3 (pip3), I get the following error for many of the packages as I try to install them. This one is the error for the mcp3008 module but all are the same error.
I edited /usr/local/lib/python3.5/dist-packages/ez_setup.py, line 467 and added an empty parameter to satisfy the above error and got further but then ended up with the following:
I am unable to install most if not all of the packages using Python3