Re: [scikit-image] Fw: Re: Compilation Problems

The easy way to check if your Python has SSL support is to do: python -c "import ssl" and see if you get an error message. If you do you then it's probably worth complaining to whoever installed that Python so that they at least know that there's a problem -- this is a pretty serious kind of brokenness, as you're discovering. I agree with other posters that the quick/easy fix is to install Anaconda. -n On Jan 10, 2017 7:33 AM, "James Board via scikit-image" < scikit-image@python.org> wrote: I don't have root access on this machine and I personally didn't install the python version. I can't tell if the sysadmins installed openssl-devel before building python. How sure are you that this is causing my problem? I could build python and openssl-devel myself. But without root access, that could be a lot of work because I'll have to track down each dependency manually. Thank you for replying.
-------------------------------------------- On Sun, 1/8/17, Nathaniel Smith <njs@pobox.com> wrote:
Subject: Re: [scikit-image] Compilation Problems To: "James Board" <jpboard2@yahoo.com> Cc: scikit-image@python.org Date: Sunday, January 8, 2017, 10:16 PM
You appear to be using a self-built Python. Did you by chance forget to install openssl-devel before building Python, so that you ended up with a Python that has no ssl module?
-n
I'm on a Red-Hat-like Linux machine and I tried to install scikit several ways and failed. Here was one attempt:
git clone https://github.com/scikit-image/scikit-image.git cd scikit-image python --version Python 2.7.9
pip install -e Traceback (most recent call last): File "/usr/local/python/2.7.9/gnu//bin/pip", line 9, in <module> load_entry_point('pip==8.1.0', 'console_scripts', 'pip')() File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py",
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py",
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py",
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py",
On Sun, Jan 8, 2017 at 6:11 PM, James Board via scikit-image <scikit-image@python.org> wrote: line 568, in load_entry_point line 2720, in load_entry_point line 2380, in load line 2386, in resolve
File "/usr/local/python/2.7.9/gnu/lib/python2.7/site-packages/
line 15, in <module>
from pip.vcs import git,
mercurial, subversion, bazaar # noqa
File "/usr/local/python/2.7.9/gnu/lib/python2.7/site-packages/
line 9, in <module>
from pip.index import Link File
"/usr/local/python/2.7.9/gnu/lib/python2.7/site-packages/
line 30, in <module>
from pip.wheel import Wheel,
wheel_ext
File "/usr/local/python/2.7.9/gnu/lib/python2.7/site-packages/
line 39, in <module>
from
pip._vendor.distlib.scripts import ScriptMaker
File "/usr/local/python/2.7.9/gnu/lib/python2.7/site-packages/
line 14, in <module>
from .compat import sysconfig,
detect_encoding, ZipFile
File "/usr/local/python/2.7.9/gnu/lib/python2.7/site-packages/
pip-8.1.0-py2.7.egg/pip/__init__.py", pip-8.1.0-py2.7.egg/pip/vcs/subversion.py", pip-8.1.0-py2.7.egg/pip/index.py", pip-8.1.0-py2.7.egg/pip/wheel.py", pip-8.1.0-py2.7.egg/pip/_vendor/distlib/scripts.py", pip-8.1.0-py2.7.egg/pip/_vendor/distlib/compat.py",
line 31, in <module>
from urllib2 import (Request,
urlopen, URLError, HTTPError,
ImportError: cannot import name HTTPSHandler
Here's another attempt that failed:
easy_install --install-dir=/p/home/jpboard/SCIKIT -U scikit-image Creating /p/home/jpboard/SCIKIT/site.py Searching for scikit-image Reading https://pypi.python.org/simple/scikit-image/ Download error on https://pypi.python.org/simple/scikit-image/: unknown url type: https -- Some packages may not be found! Couldn't find index page for 'scikit-image' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found! No local packages or download links found for scikit-image error: Could not find suitable distribution for Requirement.parse('scikit-image')
Can anyone tell what I'm doing wrong? I tried all available options for me in the scikit documentation. What should I do next?
_______________________________________________ scikit-image mailing list scikit-image@python.org https://mail.python.org/mailman/listinfo/scikit-image
-- Nathaniel J. Smith -- https://vorpus.org
_______________________________________________ scikit-image mailing list scikit-image@python.org https://mail.python.org/mailman/listinfo/scikit-image
participants (1)
-
Nathaniel Smith