Closed tomyduby closed 4 years ago
@tomyduby there is a solution in #14
Please can you have a look at that issue and try the solution.
Thanks
Dear @rajeshrinet ,
Thanks for your prompt reply. I installed visualcppbuildtools_full.exe
.
But there is a new issue:
(base) PS C:\Users\Tomy> cd \ramp\code\pyross
(base) PS C:\ramp\code\pyross> python setup.py install
running install
running build
running build_py
running build_ext
building 'pyross.contactMatrix' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\pyross
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python\anaconda3\lib\site-packages\numpy\core\include -IC:\Python\anaconda3\include -IC:\Python\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcpyross\contactMatrix.c /Fobuild\temp.win-amd64-3.7\Release\pyross\contactMatrix.obj
contactMatrix.c
c:\python\anaconda3\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:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Python\anaconda3\libs /LIBPATH:C:\Python\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit_contactMatrix build\temp.win-amd64-3.7\Release\pyross\contactMatrix.obj /OUT:build\lib.win-amd64-3.7\pyross\contactMatrix.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\pyross\contactMatrix.cp37-win_amd64.lib
contactMatrix.obj : warning LNK4197: export 'PyInit_contactMatrix' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.7\Release\pyross\contactMatrix.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\pyross\contactMatrix.cp37-win_amd64.exp
Generating code
c:\ramp\code\pyross\pyross\contactmatrix.c(55639) : fatal error C1002: compiler is out of heap space in pass 2
LINK : fatal error LNK1257: code generation failed
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1257
(base) PS C:\ramp\code\pyross>
Do you have any ideas / workarounds? Many thanks for your help Tomy
Dear @tomyduby
This link has a workaround. Please can you try this and let me know if this works?
Thanks
Dear @rajeshrinet
I faithfully followed your instructions but so far with little success. I managed to create ta-lib (that was done in a separate window that I do not include). Then I opened anaconda3 powershell
and here is the screen dump:
(base) PS C:\ramp\code\pyross> pip install ta-lib
Collecting ta-lib
Downloading TA-Lib-0.4.18.tar.gz (265 kB)
|████████████████████████████████| 265 kB 2.2 MB/s
Requirement already satisfied: numpy in c:\python\anaconda3\lib\site-packages (from ta-lib) (1.18.1)
Building wheels for collected packages: ta-lib
Building wheel for ta-lib (setup.py) ... done
Created wheel for ta-lib: filename=TA_Lib-0.4.18-cp37-cp37m-win_amd64.whl size=543376 sha256=9a675c2dfe1e51540d326a8d559fa7791a6388a909c00f9e1844fa992a385f69
Stored in directory: c:\users\tomy\appdata\local\pip\cache\wheels\e0\f4\97\46b06b3ebf454662460c56478bf7412d4adfb40590ed98ba39
Successfully built ta-lib
Installing collected packages: ta-lib
Successfully installed ta-lib-0.4.18
(base) PS C:\ramp\code\pyross> python setup.py install
running install
running build
running build_py
running build_ext
building 'pyross.contactMatrix' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python\anaconda3\lib\site-packages\numpy\core\include -IC:\Python\anaconda3\include -IC:\Python\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcpyross\contactMatrix.c /Fobuild\temp.win-amd64-3.7\Release\pyross\contactMatrix.obj
contactMatrix.c
c:\python\anaconda3\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:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Python\anaconda3\libs /LIBPATH:C:\Python\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit_contactMatrix build\temp.win-amd64-3.7\Release\pyross\contactMatrix.obj /OUT:build\lib.win-amd64-3.7\pyross\contactMatrix.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\pyross\contactMatrix.cp37-win_amd64.lib
contactMatrix.obj : warning LNK4197: export 'PyInit_contactMatrix' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.7\Release\pyross\contactMatrix.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\pyross\contactMatrix.cp37-win_amd64.exp
Generating code
c:\ramp\code\pyross\pyross\contactmatrix.c(55639) : fatal error C1002: compiler is out of heap space in pass 2
LINK : fatal error LNK1257: code generation failed
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1257
(base) PS C:\ramp\code\pyross>
```.
Sorry for causing so much trouble :-).
Tomy
Dear @tomyduby
It seems to be a problem of the older version of Visual Studio. Please see this link.
Would you please try installing 16.4 or later. From you error messages, I can see that you are using Visual Studio 14.0.
Thanks:)
Dear @rajeshrinet ,
This is what I did this afternoon:
The above link:
https://developercommunity.visualstudio.com/content/problem/653301/fatal-error-c1002-compiler-is-out-of-heap-space-in.html.
A fix for this issue has been released! Install the most recent release from
https://visualstudio.microsoft.com/downloads/.
Thank you for providing valuable feedback which has helped improve the product.
In Settings / Apps and Features I see that I have installed on 23-May-20
Microsoft Visual C-- 2015 Redistributable (x64) ... uninstalled.
Microsoft Visual C-- 2015 Redistributable (x85) ... uninstalled.
Microsoft Visual C++ Build tools ... uninstalled.
Downloading new version from:
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
Downloaded vs_buildtools__149782774.1590417972.exe to Downloads.
Running vs_buildtools__149782774.1590417972.exe from downloads.
15:56: started.
15:58: done. This downloaded and installed Visual Studio Installer.
16:21: Started Visual Studio Installer
Installed Visual Studio Community 2019.
16:26: Started installation
16:36: Done. But not signed in to my developer services. May be later.
16:37: Preparing for first use. Continue with no code.
16:38: Start Anaconda3 Powershell
cd \ramp\code\pyross
python setup.py install
(base) PS C:\Users\Tomy> cd \ramp
(base) PS C:\ramp> cd code
(base) PS C:\ramp\code> cd pyross
(base) PS C:\ramp\code\pyross> python setup.py install
running install
running build
running build_py
running build_ext
building 'pyross.contactMatrix' extension
error: Unable to find vcvarsall.bat
(base) PS C:\ramp\code\pyross>
I have already taken too much of your time. May be one more go to fix this problem?
Best wishes
Tomy
Windows is unfortunately not supported. The differences between the windows and linux/mac operating systems makes cross compatibility very difficult. I suggest that you install pyross using either a linux virtual machine under windows or the windows linux subsystem.
Thanks! I understand. Best wishes Tomy
I am trying to install PyRoss using Anaconda3 power shell. This is the error message I am getting:
Please advise Thanks Tomy