Closed mxchinegod closed 5 years ago
Python 3.6 and using pip to get everything my script depends on works just fine after uninstalling Anaconda. There's something to do with mkl that isn't working properly.
Going to have to do without your suite for now until it's fixed.
@DylanAlloy Could you please share the complete error that you see on the command prompt?
Closing due to inactivity. Please reopen if this issue is still reproducible.
On my 64-bit Window 10, I have this error on importing numpy.
Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
import numpy Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\site-packages\numpy\core__init__.py", line 16, in
from . import multiarray ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified procedure could not be found.
@pajayrao, can you try python -c "import numpy"
from the Anaconda Prompt
?
I have the same problem, and no python -c "import numpy"
does not work from the Anaconda Prompt.
Numpy seems to be corrupted now on my machine, as well, upon upgrade. Error below. Just about ready to throw numpy out the window into the yard.
.............
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
import numpy Traceback (most recent call last): File "c:\tools\python36\lib\site-packages\numpy\core__init__.py", line 16, in
from . import multiarray ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified procedure could not be found.
exit Use exit() or Ctrl-Z plus Return to exit exit()
Looks like numpy has been corrupted in my sytem too , getting the below error
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified procedure could not be found.
I get the same problem. I have uninstalled numpy and clean install from the site.
Traceback (most recent call last):
File "E:\Program Files (x86)\Python36-32\lib\site-packages\numpy\core__init__.py", line 16, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test2.py", line 1, in git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Numpy 1.12.1 works ok. Numpy 1.13.0 and above on windows 10 64 bit machine produces the above error.
I am investigating this now.
@schurms, So far I have not been able to reproduce this. Did you install 32-bit or 64-bit Anaconda? Which version? Probably easiest if you give me a link to the exact installer executable that you used, or just the filename. Did you read https://github.com/ContinuumIO/anaconda-issues/issues/835? Do you have any libiomp5md.dll
in C:\Windows\System32
? Can you run the Anaconda Prompt
and type where libiomp5md.dll
and show the results please?
Here are the steps I took to attempt to try to reproduce this using Miniconda
:
set ROOT=%TEMP%
cd %ROOT%
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.continuum.io/miniconda/Miniconda3-4.3.21-Windows-x86.exe', 'mc3.exe') }"
start /wait "" mc3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=%ROOT%\mc3
: Properly activate the env.
%ROOT%\mc3\Scripts\activate.bat
: Update everything
conda update -y --all
conda install -y numpy
python -c "import numpy"
I would like to know if they reproduce the issue for you or not. If you installed 64-bit, then change Miniconda3-4.3.21-Windows-x86.exe
to Miniconda3-4.3.21-Windows-x86_64.exe
.
Anaconda3-4.3.1-Windows-x86_64.exe
OK, in that case, please try:
set ROOT=%TEMP%
cd %ROOT%
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.continuum.io/archive/Anaconda3-4.3.1-Windows-x86_64.exe', 'ac3.exe') }"
start /wait "" ac3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=%ROOT%\ac3
: Properly activate the env.
%ROOT%\ac3\Scripts\activate.bat
: Update everything
conda update -y --all
conda install -y numpy
python -c "import numpy"
ran it error at the end. 448mb so took a few mins to download. When I load version 1.12.0 of numpy the code runs ok in Pycharm. When I upgrade to 1.13.0 in pycharm the same error occurs. If I revert to 1.12.0 it works ok.
Please paste your errors as text rather than as a screenshot.
ok. it was the last line.
AttributeError: '_NamespacePath' object has no attribute 'sort'
then the processor finished. I then restarted pycharm. Reinitiated numpy and got the same errors. As I indicated version 1.12.0 is ok. But 1.13.0 produces the same error message as all the others have communicated.
I wanted the full error text if possible. It is possible to copy and paste from a cmd.exe
prompt. It seems you have a more fundamental problem here than anything to do with PyCharm, and until we get to the bottom of that, there's little point trying to do anything in PyCharm.
From cmd.exe, please paste the output from echo %PATH%
and also where python36.dll
So this is all the output I receive from executing the command - this is the same as the screenshot - the script ended after this.
C:\Users\Games\AppData\Local\Temp>powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.continuum.io/archive/Anaconda3-4.3.1-Windows-x86_64.exe', 'ac3.exe') }"
C:\Users\Games\AppData\Local\Temp>start /wait "" ac3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=C:\Users\Games\AppData\Local\Temp\ac3
C:\Users\Games\AppData\Local\Temp>C:\Users\Games\AppData\Local\Temp\ac3\Scripts\activate.bat
Traceback (most recent call last):
File "C:\Users\Games\AppData\Local\Temp\ac3\Scripts\conda-script.py", line 5, in <module>
sys.exit(conda.cli.main())
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\cli\main.py", line 151, in main
activate.main()
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\cli\activate.py", line 118, in main
from conda.utils import shells
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\utils.py", line 13, in <module>
from .gateways.disk.read import compute_md5sum
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\gateways\disk\read.py", line 22, in <module>
from ...models.channel import Channel
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\models\channel.py", line 9, in <module>
from ..base.context import context
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\base\context.py", line 19, in <module>
from .._vendor.auxlib.path import expand
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\_vendor\auxlib\path.py", line 8, in <module>
import pkg_resources
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2985, in <module>
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2971, in _call_aside
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 3013, in _initialize_master_working_set
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2544, in activate
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2118, in declare_namespace
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2058, in _handle_ns
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2087, in _rebuild_mod_path
AttributeError: '_NamespacePath' object has no attribute 'sort'
Great, thanks.
this is the same as the screenshot
It's not though, one is text and the other is an image. Screenshots cannot be copied from as text (for example so I can paste the text into Google) without using some OCR or manually rewriting the contents.
From cmd.exe, please paste the output from echo %PATH%
and also where python36.dll
Sorry I am not a programmer - I am a Business Analyst using this package to learn data analysis and I came across the same error as above when running Pycharm. So, that being said, (1) you want me to open a cmd prompt and enter echo %path% and (2) what do you want me to do with python36.dll?
echo %PATH%
and copy the result as text and paste it into a comment here.where python36.dll
and again, copy the result as text pasting it here.Thank you First Part
E:\Program Files (x86)\Python36-32\Scripts\;E:\Program Files (x86)\Python36-32\;E:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;E:\Program Files (x86)\Python36-32\Lib;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\Library\bin;C:\Users\Games\AppData\Local\Microsoft\WindowsApps
Second Part
E:\Program Files (x86)\Python36-32\python36.dll C:\ProgramData\Anaconda3\python36.dll
Can you carefully remove all traces of Python
and Anaconda
from your PATH
(Windows + R, enter %windir%\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
then press return) then launch a new cmd.exe prompt and then retry https://github.com/ContinuumIO/anaconda-issues/issues/1508#issuecomment-308377226
Part 1:
C:\Users\Games\AppData\Local\Temp>powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.continuum.io/archive/Anaconda3-4.3.1-Windows-x86_64.exe', 'ac3.exe') }"
C:\Users\Games\AppData\Local\Temp>start /wait "" ac3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=C:\Users\Games\AppData\Local\Temp\ac3
C:\Users\Games\AppData\Local\Temp>C:\Users\Games\AppData\Local\Temp\ac3\Scripts\activate.bat
Traceback (most recent call last):
File "C:\Users\Games\AppData\Local\Temp\ac3\Scripts\conda-script.py", line 5, in <module>
sys.exit(conda.cli.main())
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\cli\main.py", line 151, in main
activate.main()
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\cli\activate.py", line 118, in main
from conda.utils import shells
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\utils.py", line 13, in <module>
from .gateways.disk.read import compute_md5sum
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\gateways\disk\read.py", line 22, in <module>
from ...models.channel import Channel
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\models\channel.py", line 9, in <module>
from ..base.context import context
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\base\context.py", line 19, in <module>
from .._vendor.auxlib.path import expand
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\conda\_vendor\auxlib\path.py", line 8, in <module>
import pkg_resources
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2985, in <module>
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2971, in _call_aside
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 3013, in _initialize_master_working_set
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2544, in activate
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2118, in declare_namespace
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2058, in _handle_ns
File "C:\Users\Games\AppData\Local\Temp\ac3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2087, in _rebuild_mod_path
AttributeError: '_NamespacePath' object has no attribute 'sort'
Part 2
C:\Users\Games\AppData\Local\Temp>echo %path%
E:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Games\AppData\Local\Microsoft\WindowsApps
Part 3
where python36.dll
INFO: Could not find files for the given pattern(s).
OK, this is getting tricky! Let me get back to you a bit later.
Can you run cmd.exe again, and show the result of set
please?
Also, the result of dir %APPDATA%
could be useful.
SET
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\Games>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Games\AppData\Roaming
asl.log=Destination=file
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=GAMES-PC
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Games
LOCALAPPDATA=C:\Users\Games\AppData\Local
LOGONSERVER=\\GAMES-PC
NUMBER_OF_PROCESSORS=8
OneDrive=C:\Users\Games\OneDrive
OS=Windows_NT
Path=E:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Games\AppData\Local\Microsoft\WindowsApps
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1a05
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
PYTHONPATH=E:\Program Files (x86)\Pythhon36-32\Scripts\;E:\Program Files (x86)\Python36-32\Lib\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\Games\AppData\Local\Temp
TMP=C:\Users\Games\AppData\Local\Temp
USERDOMAIN=Games-PC
USERDOMAIN_ROAMINGPROFILE=Games-PC
USERNAME=Games
USERPROFILE=C:\Users\Games
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=E:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
windir=C:\WINDOWS
%APPDATA%
Volume in drive C has no label.
Volume Serial Number is 9C5F-EDDA
Directory of C:\Users\Games\AppData\Roaming
29-May-17 08:35 PM <DIR> .
29-May-17 08:35 PM <DIR> ..
07-Jun-17 05:05 AM <DIR> Adobe
26-Dec-16 09:04 PM 33 AdobeWLCMCache.dat
10-Nov-16 08:39 PM <DIR> Appcelerator
01-Jan-17 05:21 PM <DIR> Apple Computer
01-Jul-16 06:38 PM <DIR> Downloaded Installations
06-Dec-15 09:49 AM <DIR> EPSON
18-Jan-15 11:00 PM <DIR> FLEXNet
11-Apr-17 07:45 PM <DIR> GitHub
12-May-17 06:19 PM <DIR> Google
01-May-16 05:22 PM <DIR> Identities
12-Nov-15 08:08 PM <DIR> InstallShield
29-May-17 08:35 PM <DIR> java
13-Feb-17 08:47 PM <DIR> JetBrains
12-Nov-15 08:14 PM <DIR> Leadertech
02-May-16 04:43 PM <DIR> Logishrd
02-May-16 04:43 PM <DIR> Logitech
28-Jan-15 09:51 PM <DIR> Macromedia
14-Jul-09 05:45 PM <DIR> Media Center Programs
22-Aug-15 06:42 PM <DIR> Microsoft FxCop
17-Mar-16 06:26 PM <DIR> Notepad++
23-Nov-16 09:43 PM <DIR> npm
20-Dec-16 06:29 PM <DIR> NuGet
15-Mar-15 09:05 AM <DIR> NVIDIA
01-May-17 06:26 PM <DIR> Opera Software
05-Oct-15 02:14 PM <DIR> Oracle
29-May-17 08:29 PM <DIR> Python
08-May-16 08:59 PM <DIR> Samsung
11-Jun-16 05:55 PM <DIR> Skype
23-Jan-15 06:30 PM <DIR> Sparx Systems
04-Jun-17 08:23 PM <DIR> SQL Developer
04-Jun-17 08:20 PM <DIR> sqldeveloper
01-Mar-15 08:19 PM <DIR> stetic
02-Oct-15 08:10 PM <DIR> Sun
08-Apr-17 02:34 PM <DIR> vlc
21-Oct-15 08:25 PM <DIR> VMware
01-Apr-17 05:48 PM <DIR> vstelemetry
29-Oct-16 08:02 AM <DIR> your-app
1 File(s) 33 bytes
47 Dir(s) 32,303,558,656 bytes free
I see that the environment variable PYTHONPATH
is set. This can often cause problems. But also try renaming the %APPDATA%\Python
folder to something else (e.g. Python.old
). Let me know which if any of these works please!
Ok
C:\Users\Games\AppData\Local\Temp>powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.continuum.io/archive/Anaconda3-4.3.1-Windows-x86_64.exe', 'ac3.exe') }"
C:\Users\Games\AppData\Local\Temp>start /wait "" ac3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=C:\Users\Games\AppData\Local\Temp\ac3
C:\Users\Games\AppData\Local\Temp>C:\Users\Games\AppData\Local\Temp\ac3\Scripts\activate.bat
(root) C:\Users\Games\AppData\Local\Temp>
SET
(root) C:\Users\Games\AppData\Local\Temp>set
ALLUSERSPROFILE=C:\ProgramData
ANDROID_NDK_PATH=C:\Program Files\Android\ndk\android-ndk-r11c
APPDATA=C:\Users\Games\AppData\Roaming
asl.log=Destination=file
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=GAMES-PC
ComSpec=C:\WINDOWS\system32\cmd.exe
CONDA_DEFAULT_ENV=root
CONDA_PREFIX=C:\Users\Games\AppData\Local\Temp\ac3
CONDA_PS1_BACKUP=$P$G
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Games
LOCALAPPDATA=C:\Users\Games\AppData\Local
LOGONSERVER=\\GAMES-PC
NUMBER_OF_PROCESSORS=8
OneDrive=C:\Users\Games\OneDrive
OS=Windows_NT
Path=C:\Users\Games\AppData\Local\Temp\ac3;C:\Users\Games\AppData\Local\Temp\ac3\Library\mingw-w64\bin;C:\Users\Games\AppData\Local\Temp\ac3\Library\usr\bin;C:\Users\Games\AppData\Local\Temp\ac3\Library\bin;C:\Users\Games\AppData\Local\Temp\ac3\Scripts;E:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Games\AppData\Local\Microsoft\WindowsApps
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1a05
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=(root) $P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
ROOT=C:\Users\Games\AppData\Local\Temp
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\Games\AppData\Local\Temp
TMP=C:\Users\Games\AppData\Local\Temp
USERDOMAIN=Games-PC
USERDOMAIN_ROAMINGPROFILE=Games-PC
USERNAME=Games
USERPROFILE=C:\Users\Games
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=E:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
windir=C:\WINDOWS
%APPDATA%
C:\Users\Games>%APPDATA%
'C:\Users\Games\AppData\Roaming' is not recognized as an internal or external command,
operable program or batch file.
ECHO %PATH%
C:\Users\Games>echo %path%
E:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Games\AppData\Local\Microsoft\WindowsApps
where PYTHON32.DLL
C:\Users\Games>where python36.dll
INFO: Could not find files for the given pattern(s).
Running Python Program still get this error on numpy versions 1.13.0 and above:
"E:\Program Files (x86)\Python36-32\python.exe" test2.py
Traceback (most recent call last):
File "C:\Users\Games\AppData\Roaming\Python\Python36\site-packages\numpy\core\__init__.py", line 16, in <module>
from . import multiarray
ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test2.py", line 1, in <module>
import numpy as np
File "C:\Users\Games\AppData\Roaming\Python\Python36\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "C:\Users\Games\AppData\Roaming\Python\Python36\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "C:\Users\Games\AppData\Roaming\Python\Python36\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "C:\Users\Games\AppData\Roaming\Python\Python36\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\Users\Games\AppData\Roaming\Python\Python36\site-packages\numpy\core\__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified procedure could not be found.
Process finished with exit code 1
I did a manual search for python36.dll and found it in the following directories.
C:\Users\Games\AppData\Local\Temp\ac3
C:\ProgramData\Anaconda3
conda --version
(C:\ProgramData\Anaconda3) C:\Users\Games>conda --version
conda 4.3.14
libiomp5md.dll is in:
(C:\ProgramData\Anaconda3) C:\Users\Games>python --version
Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
(C:\ProgramData\Anaconda3) C:\Users\Games>where libiomp5md.dll
C:\ProgramData\Anaconda3\Library\bin\libiomp5md.dll
Plus there is a version of libiomp5md.dll in
C:\Program Files\Adobe\Adobe Photoshop CC 2017
"E:\Program Files (x86)\Python36-32\python.exe" test2.py
Why are you running this Python? That is not the Python from the Anaconda you installed in %TEMP%
.
You need to run C:\Users\Games\AppData\Local\Temp\ac3\python.exe test2.py
and see if that works.
Was the problem ever solved? I am having similar issues.
It turns out that all I needed to do was update my IDE to use the python interpreter to the one that came with Anaconda. I was using the wrong interpreter. I used the version in c:\ProgramData\Anaconda3 and it works fine.
Same numpy import DLL load error as @pajayrao and @o-cic above, after update/upgrade numpy stopped working. This was related to some DLL depencency issues under WIN with Intel MKL libraries and observed under python 3.6.2 and numpy 1.13.1.
"import numpy" numpy\coreinit.py", line 16, in from . import multiarray ImportError: DLL load failed: The specified procedure could not be found.
My quick and dirty solution was to copy all Intel mkl*.dll libraries from the specific environments (env) subfolder to the \numpy\core folder (seen at stackoverflow)
<\Library\bin> to <\Lib\site-packages\numpy\core>
04/13/2017 12:50 AM 30,277,392 mkl_avx.dll
04/13/2017 12:50 AM 38,253,840 mkl_avx2.dll
04/13/2017 12:50 AM 42,234,640 mkl_avx512.dll
04/13/2017 12:50 AM 45,722,896 mkl_avx512_mic.dll
04/13/2017 12:50 AM 25,369,360 mkl_core.dll
04/13/2017 12:50 AM 24,541,456 mkl_def.dll
04/13/2017 12:50 AM 24,506,640 mkl_intel_thread.dll
04/13/2017 12:50 AM 29,744,400 mkl_mc.dll
04/13/2017 12:50 AM 30,594,320 mkl_mc3.dll
04/13/2017 12:50 AM 12,567,824 mkl_rt.dll
04/13/2017 12:50 AM 11,388,688 mkl_sequential.dll
04/13/2017 12:50 AM 12,575,504 mkl_tbb_thread.dll
04/13/2017 12:50 AM 11,250,960 mkl_vml_avx.dll
04/13/2017 12:50 AM 11,463,952 mkl_vml_avx2.dll
04/13/2017 12:50 AM 10,285,840 mkl_vml_avx512.dll
04/13/2017 12:50 AM 11,692,304 mkl_vml_avx512_mic.dll
04/13/2017 12:50 AM 5,224,208 mkl_vml_cmpt.dll
04/13/2017 12:50 AM 5,345,552 mkl_vml_def.dll
04/13/2017 12:50 AM 9,477,904 mkl_vml_mc.dll
04/13/2017 12:50 AM 9,368,336 mkl_vml_mc2.dll
04/13/2017 12:50 AM 9,593,616 mkl_vml_mc3.dll
now numpy can be imported and runs fine.
The below steps solved my issue :
pip install numpy // Looks like latest numpy version is 1.13.0 which was not working
Load Error
//steps From this thread - echo and where are doing nothing but show output//
echo %PATH% where python36.dll pip uninstall numpy pip install -Iv numpy==1.12.0
After Updating to conda 4.3.29
TFLearn Gives Load Error
import tflearn
File "C:\Program Files\Anaconda3\lib\site-packages\tflearn__init__.py", line 61, in
File "C:\Program Files\Anaconda3\lib\site-packages\tflearn\datasets__init__.py", line 1, in
File "C:\Program Files\Anaconda3\lib\site-packages\tflearn\datasets\cifar10.py", line 16, in
File "C:\Program Files\Anaconda3\lib\site-packages\tflearn\data_utils.py", line 7, in
File "C:\Program Files\Anaconda3\lib\site-packages\PIL\Image.py", line 58, in
ImportError: DLL load failed: The specified module could not be found.
C:\Users\Bahadur>python -c "import numpy"
Traceback (most recent call last):
File "C:\Program Files\Anaconda3\lib\site-packages\numpy\core__init__.py", line 16, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: Incorrect function. Solution change your current version of numpy pip uninstall numpy pip install -Iv numpy==1.12.0
Now check window+r c:>python
import python your error will solved
Was having the same issue with Python 3.6.2 and Numpy/Scipy on Windows 8. Anaconda is not installed as well.
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
C:\Python36\Scripts>pip freeze
numpy==1.14.2
pandas==0.21.0
scipy==1.0.1
Python 2.7 was present in the PATH variable. Removed it.
Then uninstalled existing scipy and numpy modules. Ensure that the commands are executed as Administrator.
pip uninstall numpy
pip uninstall scipy
Then ran
pip install numpy --upgrade
pip install scipy --upgrade
This resolved the issue!
Thanks, Praveen
Anaconda is not installed as well.
@praveentn, this is for discussion of issues in the Anaconda Distribution
only.
Same numpy import DLL load error as @pajayrao and @o-cic above, after update/upgrade numpy stopped working. This was related to some DLL depencency issues under WIN with Intel MKL libraries and observed under python 3.6.2 and numpy 1.13.1.
"import numpy" numpy\coreinit.py", line 16, in from . import multiarray ImportError: DLL load failed: The specified procedure could not be found.
My quick and dirty solution was to copy all Intel mkl*.dll libraries from the specific environments (env) subfolder to the \numpy\core folder (seen at stackoverflow)
<\Library\bin> to <\Lib\site-packages\numpy\core>
04/13/2017 12:50 AM 30,277,392 mkl_avx.dll 04/13/2017 12:50 AM 38,253,840 mkl_avx2.dll 04/13/2017 12:50 AM 42,234,640 mkl_avx512.dll 04/13/2017 12:50 AM 45,722,896 mkl_avx512_mic.dll 04/13/2017 12:50 AM 25,369,360 mkl_core.dll 04/13/2017 12:50 AM 24,541,456 mkl_def.dll 04/13/2017 12:50 AM 24,506,640 mkl_intel_thread.dll 04/13/2017 12:50 AM 29,744,400 mkl_mc.dll 04/13/2017 12:50 AM 30,594,320 mkl_mc3.dll 04/13/2017 12:50 AM 12,567,824 mkl_rt.dll 04/13/2017 12:50 AM 11,388,688 mkl_sequential.dll 04/13/2017 12:50 AM 12,575,504 mkl_tbb_thread.dll 04/13/2017 12:50 AM 11,250,960 mkl_vml_avx.dll 04/13/2017 12:50 AM 11,463,952 mkl_vml_avx2.dll 04/13/2017 12:50 AM 10,285,840 mkl_vml_avx512.dll 04/13/2017 12:50 AM 11,692,304 mkl_vml_avx512_mic.dll 04/13/2017 12:50 AM 5,224,208 mkl_vml_cmpt.dll 04/13/2017 12:50 AM 5,345,552 mkl_vml_def.dll 04/13/2017 12:50 AM 9,477,904 mkl_vml_mc.dll 04/13/2017 12:50 AM 9,368,336 mkl_vml_mc2.dll 04/13/2017 12:50 AM 9,593,616 mkl_vml_mc3.dll
now numpy can be imported and runs fine.
An alternative way: simply add <Library/bin> to the PATH environment variable and those DLLs will be found properly.
Same numpy import DLL load error as @pajayrao and @o-cic above, after update/upgrade numpy stopped working. This was related to some DLL depencency issues under WIN with Intel MKL libraries and observed under python 3.6.2 and numpy 1.13.1.
"import numpy" numpy\coreinit.py", line 16, in from . import multiarray ImportError: DLL load failed: The specified procedure could not be found.
My quick and dirty solution was to copy all Intel mkl*.dll libraries from the specific environments (env) subfolder to the \numpy\core folder (seen at stackoverflow) <\Library\bin> to <\Lib\site-packages\numpy\core>
04/13/2017 12:50 AM 30,277,392 mkl_avx.dll 04/13/2017 12:50 AM 38,253,840 mkl_avx2.dll 04/13/2017 12:50 AM 42,234,640 mkl_avx512.dll 04/13/2017 12:50 AM 45,722,896 mkl_avx512_mic.dll 04/13/2017 12:50 AM 25,369,360 mkl_core.dll 04/13/2017 12:50 AM 24,541,456 mkl_def.dll 04/13/2017 12:50 AM 24,506,640 mkl_intel_thread.dll 04/13/2017 12:50 AM 29,744,400 mkl_mc.dll 04/13/2017 12:50 AM 30,594,320 mkl_mc3.dll 04/13/2017 12:50 AM 12,567,824 mkl_rt.dll 04/13/2017 12:50 AM 11,388,688 mkl_sequential.dll 04/13/2017 12:50 AM 12,575,504 mkl_tbb_thread.dll 04/13/2017 12:50 AM 11,250,960 mkl_vml_avx.dll 04/13/2017 12:50 AM 11,463,952 mkl_vml_avx2.dll 04/13/2017 12:50 AM 10,285,840 mkl_vml_avx512.dll 04/13/2017 12:50 AM 11,692,304 mkl_vml_avx512_mic.dll 04/13/2017 12:50 AM 5,224,208 mkl_vml_cmpt.dll 04/13/2017 12:50 AM 5,345,552 mkl_vml_def.dll 04/13/2017 12:50 AM 9,477,904 mkl_vml_mc.dll 04/13/2017 12:50 AM 9,368,336 mkl_vml_mc2.dll 04/13/2017 12:50 AM 9,593,616 mkl_vml_mc3.dll
now numpy can be imported and runs fine.
An alternative way: simply add <Library/bin> to the PATH environment variable and those DLLs will be found properly.
Worked for me. Thanks a lot @ShuhuaGao
Still have the same error with Anaconda python used under Pycharm. Meanwhile, it works fine under spyder. Numpy version: 1.15.4. And copy the mkl*.dll files doesn't resolve the problem. It can't find the mkl_intel_thread.dll
@wister0910 You must launch PyCharm
from an activated conda environment via Anaconda Prompt
, otherwise please file a bug with PyCharm
so they activate conda environments correctly.
I'm having the same problem. In Spyder is working fine but not with PyCharm. @mingwandroid How do you launch PyCharm from the anaconda prompt?
@mingwandroid's suggestion fixed this for me (getting the error quoted above in PyCharm, but not elsewhere). Thanks1
@oskrgab:
"C:\Program Files\JetBrains\PyCharm 2018.2.4\bin\pycharm64.exe"
(you may need to adjust the path for your PyCharm version, etc.)I'm having the same issue as @oskrgab in PyCharm in Windows 10 with the latest Anaconda3 package. @mingwandroid's suggestion works for successfully importing numpy, but now matplotlib (and by extension pandas) throws an error:
Matplotlib support failed
Fatal Python error: Cannot recover from stack overflow.
Thread 0x000052bc (most recent call first):
File "C:\Anaconda3\lib\selectors.py", line 314 in _select
File "C:\Anaconda3\lib\selectors.py", line 323 in select
File "C:\Anaconda3\lib\socketserver.py", line 232 in serve_forever
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\pydevconsole.py", line 317 in start_console_server
Thread 0x00004f68 (most recent call first):
File "C:\Anaconda3\lib\threading.py", line 296 in wait
File "C:\Anaconda3\lib\threading.py", line 552 in wait
File "C:\Anaconda3\lib\site-packages\IPython\core\history.py", line 829 in run
File "C:\Anaconda3\lib\site-packages\IPython\core\history.py", line 58 in needs_sqlite
File "<decorator-gen-24>", line 2 in run
File "C:\Anaconda3\lib\threading.py", line 917 in _bootstrap_inner
File "C:\Anaconda3\lib\threading.py", line 885 in _bootstrap
Current thread 0x000058f4 (most recent call first):
File "<frozen importlib._bootstrap>", line 200 in _lock_unlock_module
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1035 in _handle_fromlist
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 19 in do_import
File "C:\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 891 in __getitem__
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\pydev_ipython\matplotlibtools.py", line 47 in find_gui_and_backend
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\pydev_ipython\matplotlibtools.py", line 96 in activate_matplotlib
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\_pydev_bundle\pydev_console_utils.py", line 199 in <lambda>
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 22 in do_import
Please report this to the PyCharm team. It seems they're hooking the import module:
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 19 in do_import
File "C:\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 891 in __getitem__
...
Run into the same problem, as well on Pycharm, latest Anaconda 3 2018.12 x86_64.
The issue for me was to add:
C:\ProgramData\Anaconda3\Lib
C:\ProgramData\Anaconda3\Library\bin
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3
to the PATH
environment variable.
It seems there is some path mix-up in the dll import system without that.
I've uninstalled, checked my environment variables, made sure I didn't have a conflicting .dll as detailed in this post: https://github.com/ContinuumIO/anaconda-issues/issues/835 to no avail.
I have Anaconda installed on another computer and it runs. Using Anaconda 4.3 on one and 4.2 on another. I've tried installing the same version on both, also didn't work. I don't know what the discrepancy is. There is no conflicting python version.
First noticed this when using pandas in the program (numpy dependency error). WIndows 10 x64. Just one day started doing this.