Trying to install wxPython Phoenix for python 3 - python

When I tried to install wx Phoenix via pip with this command
pip3 install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
Well, after a long time trying to build it I get this error:
Command "/usr/local/bin/python3.4 -u -c "import setuptools, tokenize;
__file__='/tmp/pip-build-q1ih5z3f/wxPython-Phoenix/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-wygy2a7y-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1
in /tmp/pip-build-q1ih5z3f/wxPython-Phoenix/
Anyone have the same problem? How I can fix this?

I suppose you are on a Unix plattform. In that case the command as entered by you will not find any wheel, download the source package and try to compile it. See in the README.txt what to do to get wxPython Linux wheels:
Wheels for Linux
----------------
Since there are various options for distro and wx port (GTK2 or GTK3) then the
files can not all be located in the same folder like we can do for the Windows
and OSX builds. This just simply means that you'll need to drill down a
little further to find the URL to give to pip. For example, to get the GTK3
Phoenix builds for Ubuntu 16.04 (and 16.10, LinuxMint 18, and probably others)
you can use a pip command like this:
pip install -U --pre \
-f https://wxpython.org/Phoenix/snapshot-builds/linux/gtk3/ubuntu-16.04 \
wxPython_Phoenix

Related

Installing pybluez using pip3

i am trying to install pybluez package using pip3. but i always get the following error, when I write to terminal "pip3 install pybluez"
Command "/usr/local/opt/python3/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-build-2gek1vzy/pybluez/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-jiy18qdr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-build-2gek1vzy/pybluez/
So far I have only found that upgrading the 'setuptools' might help, but it did not. I have also installed xcode to my mac. So does anyone have any suggestions ?
Thanks in advance!
In the Ubuntu system, you might want to try using:
sudo apt-get install libbluetoothdev

Error trying to install seaborn through cmd without using Anaconda

I have been trying to install seaborn through cmd without using Anaconda with the following command : pip install seaborn. I run this command in the cmd in the directory C:\Python27\Scripts and i get this error :
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\user\\appdata\\local\\temp\\pip-build-ira6iy\\scipy\\setup.py';f=getattr
(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close()
;exec(compile(code, __file__, 'exec'))" install --record c:\users\user\appdata\l
ocal\temp\pip-wzz50c-record\install-record.txt --single-version-externally-manag
ed --compile" failed with error code 1 in c:\users\user\appdata\local\temp\pip-b
uild-ira6iy\scipy\
Any help would be appreciated!
Download the wheel here and type pip install seaborn‑0.7.1‑py2.py3‑none‑any.whl it should be easier for you search for it here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Although as cryptic as the error was did you install SciPy first? That's all I can gather as possibly missing pip install scipy

can't install mysql-connector on Python 3.5.3 with pip3

I have successfully installed mysql-connector using 'pip install mysql-connector', however it installs to the Mac OSX standard version of Python (2.7).
I need it installed to my latest version of Python (3.5.3).
When I use 'pip3 install mysql-connector' or 'pip3 install --allow-external mysql-connector mysql-connector' I get the following errors:
Error 1:
Failed building wheel for mysql-connector
Error 2:
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-build-po0zonwm/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-q6b3vmy3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-build-po0zonwm/mysql-connector/
Does anyone know how to resolve this problem? I don't want to have to switch back to Python 2.7.
Thanks.
This will do the thing:
pip3 install mysql-connector-python

pip install fails with "no such option: --no-deps"

I'm trying to install my own Python package into a Python2.7 virtual environment on Windows, but I get
Installed c:\users\niklas\repos\ppy\engine
Error: no such option: --no-deps
----------------------------------------
Command "c:\users\niklas\repos\ppy\engine\.env2\scripts\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\niklas\\repos\\ppy\\engine\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 2 in C:\Users\niklas\repos\ppy\engine\
This does not happen when I do a normal installation (no -e flag). I've been checking the Pip and setuptools release notes, but it says nowhere the that a --no-deps option was removed.
I also added a print to my setup.py before setup() is called to print sys.argv which gives me
['-c', 'develop', '--no-deps']
so it must be setup() that is complaining. I also don't get this error when installing into a Python 3.5 virtual environment.
pip 9.0.1 from c:\users\niklas\repos\ppy\engine.env2\lib\site-packages (python 2.7)
setuptools 34.3.1
Edit: As it turns out, the normal installation also doesn't work but then it's the --record flag that is not recognized.
Installing node.py-script.py script to c:\users\niklas\repos\ppy\engine\.env2\Scripts
Installing node.py.exe script to c:\users\niklas\repos\ppy\engine\.env2\Scripts
Installing node.py.exe.manifest script to c:\users\niklas\repos\ppy\engine\.env2\Scripts
writing list of installed files to 'c:\users\niklas\appdata\local\temp\pip-okk7gy-record\install-record.txt'
Error: no such option: --record
I really don't want to necro this thread but after I have seen many suggestions this worked for me:
installation dir => python.exe -m pip install -U pip

Python Pygame OSx error relating to El Capitan System

I'm installing PyGame on to OSx ElCapitan with a System install of 2.7 and Brew install of Python3 following this blog post. The brew install Python3 worked fine with
sudo pip3 install hg+http://bitbucket.org/pygame/pygame
But
sudo pip install hg+http://bitbucket.org/pygame/pygame
runs into the following error
running install_headers
creating /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame': Operation not permitted
Rolling back uninstall of pygame
Command "/usr/bin/python -c "import setuptools, tokenize;
__file__='/tmp/pip-wepMKN-build/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-sWpHWA-record/install-record.txt
--single-version-externally-managed --compile"
failed with error code 1 in /tmp/pip-wepMKN-build
which I believe is related to the new System Integrity Protection in El Capitan. Everything was updated and doctored before so the system is running well otherwise.
Any help on how I can overcome this would be awesome and helpful to many I'm sure.
Thanks
Chris
#Arthur has provided a link to a thread on the possible solutions to this problem although I'm not sure I'm ready to turn off the SIP so personally would opt for the user only install suggested by a not approved answer on the aforementioned thread.

Categories

Resources