Python Forum
numpynot associted with correct python version - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/Forum-Python-Coding)
+--- Forum: General Coding Help (https://python-forum.io/Forum-General-Coding-Help)
+--- Thread: numpynot associted with correct python version (/Thread-numpynot-associted-with-correct-python-version)

Pages: 1 2


numpynot associted with correct python version - ErnestTBass - Jan-10-2019

When I tried to run a program using python3, I got an error that there is no package associated
with python named numpy.I remember putting one on.But according to the error it is associated with
a python 2.7.15 version. The default python then (during that numpy install) was python 2.7.15.

Yes, python 2.7.15 is on my laptop hard rive, but I compile (interpreted) with python 3.6.2.Python 2.7.15 is my default
python. If I type python -V it will be python 2.7.15.

There is no numpy associated with python 3.6.2, .So how do I change this setup so numpy is
associated with python 3.6.2, which is my preferred version for this code?

Any help appreciated.Thanks in advance.

Respectfully,

ErnestTBass


RE: numpynot associted with correct python version - ErnestTBass - Jan-10-2019

Oops, I forgot to include the printout that shows the errors that I discussed
in my previous post.

I will take care of that now.

Respectfully,

ErnestTBass

PS.I am sorry I am new to this forum and i cannot figure out how to attached a file to a post.


RE: numpynot associted with correct python version - micseydel - Jan-11-2019

I imagine you used pip to install it for Python 2. You ought to be able to use pip3 for Python 3.


RE: numpynot associted with correct python version - ErnestTBass - Jan-11-2019

Yes, that was my error. I have Python 3.5.2 and Python 3.6.2. Will pip3 work on both versions?

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass


RE: numpynot associted with correct python version - ErnestTBass - Jan-11-2019

ollecting numpy
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping

Above is what I got when I typed

pip3 install numpy

please tell what i did wrong. I tried to upload the file and gave mean error. It did not like the file type. Thus I just copied
and pasted.

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass


RE: numpynot associted with correct python version - ErnestTBass - Jan-11-2019

Please I need an answer to this. It is stopping me from doing my python programming. I need the python 3 version of numpy.

As of now, I cannot install that numpy version.

I am using Ubuntu 16.05 64 bit.

Any help appreciated. Thanks in advance.


Respectfully,

ErnestTBass


RE: numpynot associted with correct python version - micseydel - Jan-11-2019

I'm not sure the solution to your problem, but I did some Googling and it sounds like you can either downgrade your pip version or potentially add these flags to your pip command:
Output:
--allow-all-external --allow-unverified
(I found the flags in this SO post.)


RE: numpynot associted with correct python version - ErnestTBass - Jan-11-2019

Thank you I will give it a shot. It just seems to bean error that I have never seen before.

Respectfully,

ErnestTBass

That link that you gave me was format a MAC operating system. I will try anyway. I am stuck.

Thanks for your help.

Respectfully,

ErnestTBass


RE: numpynot associted with correct python version - ErnestTBass - Jan-11-2019

I tried the option that requires two arguments.


Here is the output.

james@james-VirtualBox:~$ sudo pip3 install numpy --allow-all-external --allow-unverified
[sudo] password for james:
Sorry, try again.
[sudo] password for james:

Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...

--allow-unverified option requires 1 argument
james@james-VirtualBox:~$

I am not sure of the syntax, but the command above seemed to be the most successful,
even with the error.

Any help on this appreciated. My version of pip3 is 9.0.1.

Thanks in advance.

Respectfully,


ErnestTBass


RE: numpynot associted with correct python version - ErnestTBass - Jan-12-2019

I think that I have an approach. I have three versions of python on my hard disk on my computer. Thy are 2.7.15, 3.5.2,and 3.6.3.

I am using 3.6.3.That was installed by me last week-end. Whenever,I try to install numpy or scipy, I get the error messages that
were shown in previous posts in this thread.

Maybe it is because of python 3.6.3. It is too new. I installed python 3.6.3 by downloading the tar file and the untaring it,then /confgiure, make, make install completed the install.

Then I must have made it the default python interpreter, and it is too new for any numpy or scipy.

So, I must remove it and make python 3.5.2 the default.That seems to be the standard python 3 and maybe I will not have as much trouble as I did before.

Does this sound plausible?

Maybe, I should just make python 3.5.2 my default python interpreter

Any other suggestion.This issue has got me stuck..

Respectfully,

ErnestTBass