mkl_intel_thread.dll error while installing flopy package - python

This is my first time to install a python package.
I want to install flopy package
The path to anaconda3 at my PC is
C:\Users\user\AppData\Local\Continuum\anaconda3
Following this video, I typed in anaconda prompt
cd "C:\Users\user\AppData\Local\Continuum\anaconda3"
python -m pip install flopy
I got the following
Collecting flopy
Using cached https://files.pythonhosted.org/packages/65/f3/7d86d8d83e6d71a05557796d303604c24c9896743be861433471d576bbb7/flopy-3.2.12.zip
and this error window appeared
The ordinal 242 could not be located in the dynamic link library
c:\Users\user\AppData\Local\Continuum\anaconda3\Library\bin\mkl_intel_thread.dll.
In anconda prompt
ERROR: Command errored out with exit status 2:
command: 'C:\Users\user\AppData\Local\Continuum\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-p3cq3l3y\\flopy\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-p3cq3l3y\\flopy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\user\AppData\Local\Temp\pip-install-p3cq3l3y\flopy\
Complete output (2 lines):
INTEL MKL ERROR: The operating system cannot run %1. mkl_intel_thread.dll.
Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.
----------------------------------------
ERROR: Command errored out with exit status 2: python setup.py egg_info Check the logs for full command output.
mkl_intel_thread_dll is in this path
where mkl_intel_thread.dll
C:\Users\user\AppData\Local\Continuum\anaconda3\Library\bin\mkl_intel_thread.dll
Any suggestions to fix this error will be highly appreciated

That video is old and just bad advice in terms of Conda best practice. FloPy is available on the Conda Forge channel in Anaconda Cloud, which can be installed with
conda install -c conda-forge flopy

Related

Python not recognizing pkg-config has been installed

I am unable to get python to recognize that pkg-config has been installed. The end goal is to be able to download the python-binance-chain library: https://github.com/sammchardy/python-binance-chain but at this moment when I use pip to install the library I receive the following error message:
ERROR: Command errored out with exit status 1:
command: 'c:\users\jpeterson\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jpeterson\\AppData\\Local\\Temp\\pip-install-0459uu9t\\secp256k1_ba55524266274c10b617991dff5a4d87\\setup.py'"'"'; __file__='"'"'C:\\Users\\jpeterson\\AppData\\Local\\Temp\\pip-install-0459uu9t\\secp256k1_ba55524266274c10b617991dff5a4d87\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\jpeterson\AppData\Local\Temp\pip-pip-egg-info-fzc7jgqc'
cwd: C:\Users\jpeterson\AppData\Local\Temp\pip-install-0459uu9t\secp256k1_ba55524266274c10b617991dff5a4d87\
Complete output (1 lines):
'pkg-config' is required to install this package. Please see the README for details.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I have downloaded the following pkg-config files:
pkg-config_0.26-1_win32
glib_2.28.8-1_win32
gettext-runtime_0.18.1.1-2_win32
However but I don't know where they need to be for python to recognize that pkg-config has been installed. I have referred to the following stackoverflow inquiry: How to install pkg config in windows? but would ideally not have to install a number of different tools, especially considering I am not sure if they will enable the end goal of installing the python-binance-chain library.

Unable to install nvidia dali in Windows 10

I am not able to install the Nvidia dali module in windows 10.
Inside anaconda I am executing the following command:
pip install nvidia-dali
and it is producing the following error:
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-bsx79qn9\\nvidia-dali\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-bsx79qn9\\nvidia-dali\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Admin\AppData\Local\Temp\pip-install-bsx79qn9\nvidia-dali\pip-egg-info'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-bsx79qn9\nvidia-dali\
Complete output (18 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Admin\AppData\Local\Temp\pip-install-bsx79qn9\nvidia-dali\setup.py", line 150, in <module>
raise RuntimeError(open("ERROR.txt", "r").read())
RuntimeError:
###########################################################################################
The package you are trying to install is only a placeholder project on PyPI.org repository.
This package is hosted on NVIDIA Python Package Index.
This package can be installed as:
$ pip install nvidia-pyindex
$ pip install nvidia-dali
Please refer to NVIDIA DALI installation guide for instructions:
https://docs.nvidia.com/deeplearning/dali/user-guide/docs/installation.html
###########################################################################################
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
In the above error it is suggesting to visit the URL:
https://docs.nvidia.com/deeplearning/dali/user-guide/docs/installation.html
I am also following the instructions given in the URL but still, I am unable to install it.
Can anyone please suggest to me the correct way of installing Nvidia dali in a windows environment.
Nvidia dali is not supported in Windows: https://github.com/NVIDIA/DALI/issues/476#issuecomment-724551468
When you try to install you end up installing placeholder package from pipy

Cannot install Flask or Pyodbc

I am making a python project in VS2017 which requires flask and pyodbc. At first I was running Python 3.8 and had no issues installing these two with pip, but in VS I was getting the error that "debugging is not supported for python 2.5 and earlier". People told me the solution to this would be to install an earlier version of Python. Many recommended version 3.5. So I uninstalled 3.8 and installed 3.5 (same path). The problem is that now I can no longer install pyodbc and flask. When I run pip install for both I am getting this long error:
ERROR: Command errored out with exit status 1:
command: 'c:\python35\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Marc8\\AppData\\Local\\Temp\\pip-install-hr1u7o04\\pyodbc\\setup.py'"'"'; __file__='"'"'C:\\Users\\Marc8\\AppData\\Local\\Temp\\pip-install-hr1u7o04\\pyodbc\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Marc8\AppData\Local\Temp\pip-record-i6_lvn4p\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python35\Include\pyodbc'
cwd: C:\Users\Marc8\AppData\Local\Temp\pip-install-hr1u7o04\pyodbc\
Complete output (7 lines):
c:\python35\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running build
running build_ext
building 'pyodbc' extension
error: [WinError 2]
How do I solve this?
UserWarning: Unknown distribution option: 'long_description_content_type'
Your setuptools is too old. To upgrade:
pip install -U setuptools
Perhaps you also need to upgrade pip:
pip install -U pip setuptools

Pip error installing PyObjC-core on mac OS 10.13.6

Hi currently i had PyObjC-core as one of the dependencies in my requirements.txt file, when i try to run
pip install -r requirements.txt
it return the following error:
Collecting pyobjc-core==6.1
Using cached https://files.pythonhosted.org/packages/3a/80/0cdb2130b86a984e4765beb93135aa9c2120fd64be1a27e1c7cb31c719bc/pyobjc-core-6.1.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vj52r5i1/pyobjc-core/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vj52r5i1/pyobjc-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-vj52r5i1/pyobjc-core/pip-egg-info
cwd: /tmp/pip-install-vj52r5i1/pyobjc-core/
Complete output (2 lines):
running egg_info
error: PyObjC requires macOS to build
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I looked for solutions online but still haven't found any answers.
my pip version is 20.0.2 and running on python 3.7
I also had tried with manual install pip install pyobjc-core but still no luck
As mentioned also here https://github.com/asweigart/pyautogui/issues/381, I believe currently the only solution is installing an older release of pyautogui:
https://pypi.org/project/PyAutoGUI/0.9.50/#history.
For instance: pip3 install PyAutoGUI==0.9.48
I came here with a slightly different error when trying to pip install pyobjc-core latest (8.1) on MacOS 10.15.7. If you are seeing the following compilation error from gcc ...
Modules/objc/OC_PythonNumber.m:553:39: error: unused parameter 'zone' [-Werror,-Wunused-parameter]
... then I would refer you to [this issue] on github 1

install mysql-python using pip on mac os

When I install mysql-python using pip on mac os, I always get this error, how can I solve this problem?
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.Internal.sdk/usr/local/libressl/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-UEOYdV/mysql-python/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-UEOYdV/mysql-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-EgQ8P0/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Try:
pip install --upgrade setuptools
As AMC posted in a comment, this error can occur when using the builtin MacOS Python 2. Use a tool like pyenv to install a standard Python distribution, create a virtual environment, and try again.

Categories

Resources