On 10-03-2015 16:48, Oscar Benjamin wrote:
On 10 March 2015 at 13:59, Markos<mar...@c2o.pro.br> wrote:
I don't have the python3-pip in the repository, then I downloaded the
get-pip.py from:
https://bootstrap.pypa.io/get-pip.py
But when running the command "python3 get-pip.py" appears the error message
(end of message).
Looks like a bug in pip or in the get-pip script. What version of
python3 are you using?
You'll just need to install setuptools and pip the old-fashioned way.
First check if you already have setuptools:
$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>> setuptools.__version__
'3.3'
If not you can install it from here (download the .tar.gz file near
the bottom of the page):
https://pypi.python.org/pypi/setuptools
Extract the .tar.gz file, cd into it and run
$ sudo python3 setup.py install
Then do the same for pip from here:
https://pypi.python.org/pypi/pip
Then you should be able to install things with
$ python3 -m pip install<package_name>
where package_name would be e.g. numpy and you'll need to be root or use sudo.
I found a message about a bug with pip at
https://github.com/pypa/pip/issues/1093
Is it the same kind of error?
I don't think so.
Any tip?
See above.
And another doubt.
Is there any risk of numpy module to be used by python3 to conflict with the
numpy module that is already installed for python2.5 and python2.6?
No. As long as you install setuptools and pip with "python3 setup.py
install" and install numpy with "python3 -m pip install numpy" then
your Python 2.x installations will be unaffected.
Oscar
Hi Oscar,
I downloaded the file
https://pypi.python.org/packages/source/s/setuptools/setuptools-14.0.tar.gz
tar -xzvf setuptools-14.0.tar.gz
cd setuptools-14.0
python3 setup.py install
Then I downloaded the file
https://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz
tar -xzvf pip-6.0.8.tar.gz
cd pip-6.0.8
python3 setup.py install
And the command python3 -m pip list
pip (6.0.8)
setuptools (14.0)
But the command to install numpy gave an error message:
# python3 -m pip install numpy
Collecting numpy
Exception:
Traceback (most recent call last):
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/basecommand.py",
line 232, in main
status = self.run(options, args)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/commands/install.py",
line 339, in run
requirement_set.prepare_files(finder)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/req/req_set.py",
line 333, in prepare_files
upgrade=self.upgrade,
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/index.py",
line 305, in find_requirement
page = self._get_page(main_index_url, req)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/index.py",
line 783, in _get_page
return HTMLPage.get_page(link, req, session=self.session)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/index.py",
line 872, in get_page
"Cache-Control": "max-age=600",
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/sessions.py",
line 473, in get
return self.request('GET', url, **kwargs)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/download.py",
line 365, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/sessions.py",
line 461, in request
resp = self.send(prep, **send_kwargs)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/sessions.py",
line 573, in send
r = adapter.send(request, **kwargs)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/cachecontrol/adapter.py",
line 43, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/adapters.py",
line 370, in send
timeout=timeout
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/packages/urllib3/connectionpool.py",
line 518, in urlopen
body=body, headers=headers)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/packages/urllib3/connectionpool.py",
line 322, in _make_request
self._validate_conn(conn)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/packages/urllib3/connectionpool.py",
line 727, in _validate_conn
conn.connect()
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/packages/urllib3/connection.py",
line 238, in connect
ssl_version=resolved_ssl_version)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py",
line 254, in ssl_wrap_socket
return context.wrap_socket(sock)
File
"/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py",
line 80, in wrap_socket
return wrap_socket(socket, ciphers=self.ciphers, **kwargs)
TypeError: wrap_socket() got an unexpected keyword argument 'ciphers'
Should I use older versions of pip and setuptools compatible with Debian 6?
Thanks for your attention,
Markos
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor