7
7
7hefa112016-10-27 11:09:20
Python
7hefa11, 2016-10-27 11:09:20

How to install wx or wx phoenix library for python 3.5 in ubuntu?

I can’t install this module, I tried to freak out from under Windows and installed Ubuntu 16.04
, in general, this is what it says:
[email protected]:~$ pip3 install wx
---
Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
----------------------------------------
Failed building wheel for wxpython- phoenix
---
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4cri0hiy/wx/setup.py';exec(compile(getattr(tokenize, ' open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_xstnu0t-record/install -record.txt --single-version-externally-managed --compile"failed with error code 1 in /tmp/pip-build-4cri0hiy/wx/
ended up idle
>>> import wx
Traceback (most recent call last):
File "", line 1, in
import wx
ImportError: No module named 'wx'
>>>
tell me what I'm doing wrong?
PS
And another question not for SUBJECT is it possible to write and compile a program from under ubuntu into a single executable file that will run on xp and 7-rke without extra tambourines? Or better immediately in the windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7hefa11, 2016-11-02
@7hefa11

another attempt through ubuntu can anyone help?
[email protected]:~$ python3
Python 3.5.2 (default, Sep 10 2016, 08:21:44)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 4*4
16
>>> exit()
[email protected]:~$ sudo apt-get install python3-pip
[email protected]:~$ sudo apt-get upgrade
[email protected]:~$ pip3
Usage:
pip [options ]
Commands:
install Install packages.
...
[email protected]:~$ sudo pip3 install --upgrade --trusted-host wxpython.org --pre -f wxpython.org/Phoenix/snapshot-buildswxPython_Phoenix
The directory '/home/valerius/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/valerius/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
and at 21% gives out
this bloody text:
Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response .py", line 226,
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 301, in read
data = self._fp.read(amt)
File "/usr/lib/python3.5/http/client.py", line 448, in read
n = self.readinto(b)
File "/usr/lib/python3.5/http/client.py", line 488 , in readinto
n = self.fp.readinto(b)
File "/usr/lib/python3.5/socket.py", line 575, in readinto
return self._sock.recv_into(b)
File "/usr/lib/ python3.5/ssl.py", line 929, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.5/ssl.py", line 791, in read
return self._sslobj.read (len, buffer)
File "/usr/lib/python3.5/ssl.py",line 575, read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist -packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 317, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3 /dist-packages/pip/req/req_set.py", line 577, in _prepare_file
session=self.session,hashes = hashes)
File "/usr/lib/python3/dist-packages/pip/download.py", line 810, in unpack_url
hashes=hashes
File "/usr/lib/python3/dist-packages/pip/download.py", line 649 , in unpack_http_url
hashes)
File "/usr/lib/python3/dist-packages/pip/download.py", line 871, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/usr/lib/python3/dist -packages/pip/download.py", line 597, in _download_url
consume(downloaded_chunks)
File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 878, in consume
deque(iterator, maxlen=0)
File "/usr/lib/python3/dist-packages/pip/download.py", line 563,in written_chunks
for chunk in chunks:
File "/usr/lib/python3/dist-packages/pip/utils/ui.py", line 139, in iter
for x in it:
File "/usr/lib/python3/dist-packages/pip/download.py ", line 552, in resp_read decode_content
=False):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 344, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 311, in read
flush_decoder = True
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 231, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='wxpython.org', port=443): Read timed out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question