Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy.core.multiarray failed to import #712

Closed
penetest opened this issue Apr 15, 2019 · 9 comments
Closed

numpy.core.multiarray failed to import #712

penetest opened this issue Apr 15, 2019 · 9 comments

Comments

@penetest
Copy link

Hi,when using numpy-platform,show some error:

numpy.core.multiarray failed to import

@saudet
Copy link
Member

saudet commented Apr 15, 2019

CPython currently isn't getting bundled yet. This is going to get fixed sooner or later, but for now make sure you have CPython 3.6 installed on your system.

@penetest
Copy link
Author

CPython currently isn't getting bundled yet. This is going to get fixed sooner or later, but for now make sure you have CPython 3.6 installed on your system.

Hi, saudet.
Firstly, thank you for your help. My system has installed CPython 3.6 and numpy1.16.2, next what can i do?

@saudet
Copy link
Member

saudet commented Apr 15, 2019

What is your operating system and how did you install CPython 3.6?

@penetest
Copy link
Author

What is your operating system and how did you install CPython 3.6?

sys: CentOS7.6,
python installed :
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz
tar -zxvf Python-3.6.8.tgz
mkdir -p /usr/local/python3
cd Python-3.6.8
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3

@saudet
Copy link
Member

saudet commented Apr 15, 2019

Try to use the official build instead by calling yum install python36

@penetest
Copy link
Author

penetest commented Apr 15, 2019

Thank you for your help! I have a success by the docker image( python:3.6.8),and do some settings in .bashrc ,as fellows:

export PYTHONHOME=/usr/local/bin
export PYTHONPATH=/usr/local/lib/python3.6:/usr/local/lib/python3.6/lib-dynload:/usr/local/lib/python3.6/site-packages

if you not do it, may show some errors:

Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f3ffcd25700 (most recent call first):
Aborted (core dumped)

@saudet
Copy link
Member

saudet commented Jun 12, 2019

CPython and NumPy are now bundled! Please give it a try with the snapshots: http://bytedeco.org/builds/

@saudet saudet mentioned this issue Jul 9, 2019
@saudet
Copy link
Member

saudet commented Jul 9, 2019

And they have now been released with version 1.5.1. Enjoy!

@saudet saudet closed this as completed Jul 9, 2019
@penetest
Copy link
Author

Yes, 1.5.1 is very better,even not install python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants