You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install pymrmr via pip install pymrmr but that failed.
What I Did
I'm working from an anaconda environment and the anaconda prompt for windows. I've installed cython via pip install cython. Then, I received the error message, telling me I need a c++ distribution. I've followed the link from the error message, installed the following packages from visual studio build tools:
MSVC v142 – VS 2019 C++-x64/x86-Buildtools (v14.24)
C++ 2019 Redistributable-Update
Windows 10 SDK (10.0.18362.0)
C++-CMake-Tools for Windows
.NET Framework 4.8 SDK
Package to set target versions of .NET Framework 4.6.1
C++-/CLI-support for v142-Buildtools (14.24)
C++-Modules for v142-Buildtools (X64/X86 – experimental)
NuGet-Targets and Build tasks
Package to set target versions of .NET Framework 4.6
Package to set target versions of .NET Framework 4.8
Visual Studio SDK Build Tools Core
C++ 2019 Redistributable-MSMs
Then, I tried to install pymrmr again and received the following error message:
>pip install pymrmr
Collecting pymrmr
Using cached https://files.pythonhosted.org/packages/b3/ab/903712947a2f5cd1af249132885dbd81ae8bf8cfd30fb3b3f2beddab23e8/pymrmr-0.1.8.tar.gz
Requirement already satisfied: numpy>=1.12.0 in c:\users\[my-username]\.conda\envs\[my-conda-environment]\lib\site-packages (from pymrmr) (1.17.4)
Building wheels for collected packages: pymrmr
Building wheel for pymrmr (setup.py) ... /
[...]
ERROR: Command errored out with exit status 1:
command: 'C:\Users\[my-username]\.conda\envs\[my-conda-environment]\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\[my-username]\\AppData\\Local\\Temp\\pip-install-a9qm24d7\\pymrmr\\setup.py'"'"'; __file__='"'"'C:\\Users\\[my-username]\\AppData\\Local\\Temp\\pip-install-a9qm24d7\\pymrmr\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\[my-username]\AppData\Local\Temp\pip-wheel-gasidp6b' --python-tag cp37
cwd: C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\
Complete output (97 lines):
running bdist_wheel
running build
running build_py
package init file 'pymrmr\__init__.py' not found (or not a regular file)
running egg_info
writing pymrmr.egg-info\PKG-INFO
writing dependency_links to pymrmr.egg-info\dependency_links.txt
writing requirements to pymrmr.egg-info\requires.txt
writing top-level names to pymrmr.egg-info\top_level.txt
reading manifest file 'pymrmr.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
writing manifest file 'pymrmr.egg-info\SOURCES.txt'
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\pymrmr
copying pymrmr\crank.cpp -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\mrmr.cpp -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\nrutil.cpp -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\nrutil.h -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\pbetai.cpp -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\pymrmr.cpp -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\pymrmr.pyx -> build\lib.win-amd64-3.7\pymrmr
copying pymrmr\sort2.cpp -> build\lib.win-amd64-3.7\pymrmr
running build_ext
skipping 'pymrmr\pymrmr.cpp' Cython extension (up-to-date)
building 'pymrmr' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\pymrmr
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\[my-username]\.conda\envs\[my-conda-environment]\lib\site-packages\numpy\core\include -IC:\Users\[my-username]\.conda\envs\[my-conda-environment]\include -IC:\Users\[my-username]\.conda\envs\[my-conda-environment]\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\include""-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um""-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt""-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared""-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um""-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt""-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppymrmr\pymrmr.cpp /Fobuild\temp.win-amd64-3.7\Release\pymrmr\pymrmr.obj -fopenmp -Ofast
cl :command line warning D9025 :"/Os" is replaced with "/Ot"
cl :command line warning D9002 : unknown option "-fopenmp" is ignored.
cl :command line warning D9002 : unknown option "-Of" is ignored.
cl :command line warning D9002 : unknown option "-Oa" is ignored.
pymrmr.cpp
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(33): warning C4244: "return": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(47): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(48): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(50): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(51): warning C4305: "=": conversion of "double" to "float"
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(52): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(57): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(58): warning C4305: "=": conversion of "double" to "float"
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(59): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(60): warning C4305: "=": conversion of "double" to "float"
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(61): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(64): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(65): warning C4305: "=": conversion of "double" to "float"
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(66): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(67): warning C4305: "=": conversion of "double" to "float"
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(68): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(90): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(94): warning C4244: "argument": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\pbetai.cpp(94): warning C4244: "return": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\mrmr.cpp(189): warning C4267: "argument": conversion of "size_t" to "long", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\mrmr.cpp(205): warning C4267: "=": conversion of "size_t" to "unsigned long", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\mrmr.cpp(215): warning C4244: "=": conversion of "double" to "float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\mrmr.cpp(216): warning C4244: "=": conversion of "unsigned long"in"float", possible data loss
C:\Users\[my-username]\AppData\Local\Temp\pip-install-a9qm24d7\pymrmr\pymrmr\mrmr.cpp(221): warning C4267: "argument": conversion of "size_t" to "unsigned long", possible data loss
pymrmr\pymrmr.cpp(5418): error C2197: "PyObject *(__cdecl *)(PyObject *,PyObject *const *,Py_ssize_t)": Too many arguments for coll.
pymrmr\pymrmr.cpp(5990): error C2039: "exc_type": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(5991): error C2039: "exc_value": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(5992): error C2039: "exc_traceback": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(5999): error C2039: "exc_type": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6000): error C2039: "exc_value": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6001): error C2039: "exc_traceback": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6002): error C2039: "exc_type": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6003): error C2039: "exc_value": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6004): error C2039: "exc_traceback": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6059): error C2039: "exc_type": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6060): error C2039: "exc_value": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6061): error C2039: "exc_traceback": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6062): error C2039: "exc_type": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6063): error C2039: "exc_value": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
pymrmr\pymrmr.cpp(6064): error C2039: "exc_traceback": Not an element of "_ts"
C:\Users\[my-username]\.conda\envs\[my-conda-environment]\include\pystate.h(212): note: See declaration of "_ts"
error: command'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for pymrmr
Running setup.py clean for pymrmr
Failed to build pymrmr
Note, that my machine is set to German and I manually translated part of these messages to English.
The text was updated successfully, but these errors were encountered:
Description
I tried to install pymrmr via
pip install pymrmr
but that failed.What I Did
I'm working from an anaconda environment and the anaconda prompt for windows. I've installed cython via
pip install cython
. Then, I received the error message, telling me I need a c++ distribution. I've followed the link from the error message, installed the following packages from visual studio build tools:Then, I tried to install pymrmr again and received the following error message:
Note, that my machine is set to German and I manually translated part of these messages to English.
The text was updated successfully, but these errors were encountered: