This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda
Type: crash Stage: resolved
Components: macOS Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: annelischen, mark.dickinson, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2019-09-04 12:45 by annelischen, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
piperroroutput.txt annelischen, 2019-09-04 14:06
Messages (10)
msg351123 - (view) Author: Ana (annelischen) Date: 2019-09-04 12:45
So, all in all, if I try to install Numpy, SciPy, pandas or any related libraries via pip I see several issues, no AIX version written (somewhere?) for Python 3.8, as well as pip addresses to mkl_rt, which is not found in the path.

I am trying to use python3.8 as a system interpreter and pip version: pip 19.2.3 I don't want to use conda. I am trying to test it using my system. What can I do?
msg351124 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2019-09-04 12:49
What issues to you see?

What operating system and version are you on?

How did you install Python?

Note that Python 3.8 is still in beta and therefore a lot of 3th party libraries do no yet have binary wheels available. You therefore likely need a compiler to install Numpy and related libraries.
msg351125 - (view) Author: Ana (annelischen) Date: 2019-09-04 13:05
1) The OS: Mojave 10.14.6
2) Python is currently here: /usr/local/bin/python
3)Pip is here: /usr/local/bin/pip Here is pip -V: pip 19.2.3 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)
4)I know it’s in beta, but I am trying to report the issues, which I find wrong
5) pip install <pkg> doesn’t work
6) If I install manually, I can install the libs:
	$ pip download <somewhat>
	$ cd somewhat
	$ python setup.py build
	$ python setup.py install

And in that case everything works, I can see the libs installed in my PyCharm app as well.

And I can run simple code in PyCharm with given Python and Pip, if I install the libs manually.

However, everything must work with just pip install <somewhat>, that’s why I am reporting.

Thx

> On 4 Sep 2019, at 15:49, Ronald Oussoren <report@bugs.python.org> wrote:
> 
> 
> Ronald Oussoren <ronaldoussoren@mac.com> added the comment:
> 
> What issues to you see?
> 
> What operating system and version are you on?
> 
> How did you install Python?
> 
> Note that Python 3.8 is still in beta and therefore a lot of 3th party libraries do no yet have binary wheels available. You therefore likely need a compiler to install Numpy and related libraries.
> 
> ----------
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue38027>
> _______________________________________
msg351129 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2019-09-04 14:01
Thanks for the update.

What's the error message you get when using pip to install?
msg351130 - (view) Author: Ana (annelischen) Date: 2019-09-04 14:06
That's huge, so I am attaching it in a separate file
msg351131 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2019-09-04 14:09
There are known Cython-related issues with the latest NumPy *release* and Python 3.8, due to a signature change in PyCode_New. But those issues are already fixed in NumPy master. `pip install numpy` fails for me in a Python 3.8b4 venv, but `pip install git+https://github.com/numpy/numpy.git` works.

But none of this indicates a bug in core Python, as far as I know.
msg351132 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2019-09-04 14:11
I forgot to include the NumPy issue link: https://github.com/numpy/numpy/issues/14403 (and other similar issues).

The pip error output you posted looks like the same issue to me.
msg351133 - (view) Author: Ana (annelischen) Date: 2019-09-04 14:12
At the end of each error log, there is a message stating different python versions (up to 3.7) and AIX. However, there is no python3.8 + AIX, and there is no corresponding dependency:

ERROR: Command errored out with exit status 2:
   command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-4mykinsd/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple <https://pypi.org/simple> -- wheel setuptools 'Cython>=0.29.2' 'numpy==1.13.3; python_version=='"'"'3.5'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version>='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.5'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version>='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"''
       cwd: None

> On 4 Sep 2019, at 17:09, Mark Dickinson <report@bugs.python.org> wrote:
> 
> pip install git+https://github.com/numpy/numpy.git <git+https://github.com/numpy/numpy.git%60>
msg351134 - (view) Author: Ana (annelischen) Date: 2019-09-04 14:13
Thx for the link. Btw, I have tried: pip install git+https://github.com/numpy/numpy.git <git+https://github.com/numpy/numpy.git> That doesn’t work for me. The only way I can install somewhat is downloading the package, building and installing it.

> On 4 Sep 2019, at 17:11, Mark Dickinson <report@bugs.python.org> wrote:
> 
> 
> Mark Dickinson <dickinsm@gmail.com> added the comment:
> 
> I forgot to include the NumPy issue link: https://github.com/numpy/numpy/issues/14403 (and other similar issues).
> 
> The pip error output you posted looks like the same issue to me.
> 
> ----------
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue38027>
> _______________________________________
msg351136 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2019-09-04 15:32
Ana,

The error in "piperroroutput.txt" points to the issue Mark mentioned in msg351131: the current release of Numpy is not compatible with Python 3.8, but the tip of the tree on GitHub is.

I can install Numpy from the repository:

$ python --version
Python 3.8.0b4

$ pip install git+https://github.com/numpy/numpy.git
Collecting git+https://github.com/numpy/numpy.git
  Cloning https://github.com/numpy/numpy.git to /private/var/folders/dy/5fl45b9s61x84g7k_18618vc0000gn/T/pip-req-build-b3_tnmd0
  Running command git clone -q https://github.com/numpy/numpy.git /private/var/folders/dy/5fl45b9s61x84g7k_18618vc0000gn/T/pip-req-build-b3_tnmd0
  Running command git submodule update --init --recursive -q
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: numpy
  Building wheel for numpy (PEP 517) ... done
  Created wheel for numpy: filename=numpy-1.18.0.dev0+3883be3-cp38-cp38-macosx_10_9_x86_64.whl size=4534619 sha256=005a0085f7dcca60b138b0ed01c72977fa0777e4ef1e0693a84295b663ef1178
  Stored in directory: /private/var/folders/dy/5fl45b9s61x84g7k_18618vc0000gn/T/pip-ephem-wheel-cache-f8wuhnns/wheels/08/c9/f0/5fb73d652a67220580b707eb5b66bfcccf521160a016ae6f2e
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy-1.18.0.dev0+3883be3

I propose closing this issue as a 3th-party issue. This should resolve itself with the next release of Numpy.
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82208
2019-09-04 15:53:21ned.deilysetstatus: pending -> closed
stage: resolved
2019-09-04 15:32:40ronaldoussorensetstatus: open -> pending
resolution: third party
messages: + msg351136
2019-09-04 14:13:36annelischensetmessages: + msg351134
2019-09-04 14:12:06annelischensetmessages: + msg351133
2019-09-04 14:11:17mark.dickinsonsetmessages: + msg351132
2019-09-04 14:09:14mark.dickinsonsetnosy: + mark.dickinson
messages: + msg351131
2019-09-04 14:06:59annelischensetfiles: + piperroroutput.txt

messages: + msg351130
2019-09-04 14:01:32ronaldoussorensetmessages: + msg351129
2019-09-04 13:05:59annelischensetmessages: + msg351125
2019-09-04 12:49:17ronaldoussorensetmessages: + msg351124
2019-09-04 12:45:53annelischencreate