I have read through
How to install Theano on Anaconda Python 2.7 x64 on Windows?
I installed Anaconda 2 and followed the steps and I can import theano, however once in a while I get a windows crash message window on python crash similar to this:
python.exe crashes when importing `theano`
I have done "conda install mingw libpython" step.
Also when I run theano.test() I get this warning:
pycuda import failed in theano.misc.pycuda_init.
Overall I think there were some more steps in the windows installation page regarding visual studio, and other modules. I have visual studio 2012 installed by microsoft.
Did you follow the theano install instructions fully?
On windows 7 x64, I would advise to either use Canopy from Enthought, which, if you are a student , you can get the complete package for free.
Or, i also used WinPython before, it worked fine.
Although you have to follow all steps, including :
Installing Windows Software Development Kit version 7.1 or you can install the newest Visual Studio which comes with it and it comes with an option to install Microsoft Visual C++ Compiler for Python 2.7
Installing TDM GCC
But be sure to check
http://deeplearning.net/software/theano/install_windows.html
You might wanna check if you missed any steps.
I had problems with Anaconda and Theano before. So i gave up on using it.
However a friend had success with it and Theano as well.
Just be sure you have your environment and python setup installed properly prior to theano install.
Doing
where gcc
where gendef
where cl
where nvcc
on the Command Prompt Might reveal something...
Be sure to have installed Windows SDK and last visual studio.
Related
I am following some guides to set up a 'quant stack'.
I installed Anaconda3 and set up an environment and ran it in terminal then ran the following:
pip install pandas matplotlib matplotlib-inline scipy statsmodels backtrader pyfolio-reloaded quantstats openbb
Most of it was fine but came into this error:
bt
linearmodels
rapidfuzz
bottleneck
error: Microsoft Visual C++ 14.0 or greater is required.
I followed the provided link and installed Visual Studio. I restarted and ran again with same error found. I saw there were many different additional downloads with the VS installer.
My conclusion is there is something I didn't install that is required during the Visual Studio installation but haven't been able to find anything to resolve the missing piece.
I tried several different installation items during the VS install. Does VSCode being on the machine interfere, or previous non Anaconda Pythons being installed to PATH already?
I was able to resolve, there are some items not compatible with the 3.11python. I removed it from my system and removed the environment in Anaconda I created with the same version. I set it up with python3.9.
As well as install the packages from Microsoft Visual Studio to update the C++ version and ran the pip I first attempted and had 0 errors.
It appears to be an issue with Python 3.10+. I had the exact same issue with 3.10 and 3.11.
Created a new environment in Anaconda Navigator with 3.8.13, ran a Terminal and successfully installed OpenBB with a simple pip install openbb.
I'trying to update spacy from version 2.0.18 to version 2.1.1.
But every time I try to run the command
pip install spacy-nightly
or
pip install -U spacy==2.1.1
I just get
error: [WinError 2] System cannot find file specified
msvc
py_compiler msvc
with a lot of unreadable output.
Now I figured it has something to do with the C++ compiler spacy uses and I installed like every package I found at the Microsoft Visual Website but my problem didnt solve itself.
I really would appreciate some help!
Most probably, you are on a 64-bit machine using a 32-bit python executable.
Remove the 32-bit version of python and Install the 64 bit version of python it will work.
If you where working within a virtualenv, then delete the virtualenv and recreate it again after installing the 64-bit of python.
OS: Windows 8 64bit with the latest update.
Objective: Run Python.exe with Powershell as an administrator.
I've changed the path to include the script but when I try to open Python I get an error code. I receive the same error during the installation.
api-ms-win-crt-runtime-l1-1-0.dll is missing from my computer.
How would I go about resolving this issue.
This error is usually caused by the missing Visual C++ Redistributable, which is a required dependency to install Python on Windows Computer.
To install Python successfully, download Visual C++ Redistributable from here and install it and Reboot the system.
After installing this, you would be able to install Python.
Link: Visual C++ Redistributable
My python background is unix (mac os and ubuntu). I recently heard about a Python plugin for VS and though this could be awesome because i like Windows ;-). The plugin is only awailable in the 2013 version so i installed it and then i tried to install cython over the integrated GUI command line interface where you can install packages over pip or easy_install, which is pretty neat.
It failed, error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). after some research it seems like i would have to install visual c++ from the 2008 version?
Im a bit confused i have visual studio installed and with it the visual studio c++. Im really not used to windows, so could anyone who understands this give me some directions please?
Set the VS90COMNTOOLS environment variable.
SET VS90COMNTOOLS=%VS120COMNTOOLS%
Ok this is a bit of an error on my part. Cython doesn't support Windows.
Cython.org links to this in its download section.
Christoph Gohlke has created Windows installers available for download on his site.
After you downloaded the wheel file you just install it with pip into the environment(virtual or global) you want and you are good to go.
pip install <path-to-download.whl>
or enter the path to the .whl file into the VS pip GUI.
The quick install guide for pyOIDC says to run python setup.py install (after installing the prerequisites).
When I try this I get :
RuntimeError: chmod error
'chmod' is not recognized as an internal or external command, operable program or batch file.
Obviously, it looks like it's expecting Linux, but I'm running Windows.
This question (which I needed for one of the prerequisites) has an answer saying:
If you don't already have a C/C++ development environment installed that is compatible with the Visual Studio binaries distributed by Python.org, then you should stick to installing only pure Python packages or packages for which a Windows binary is available.
Well, I don't have a C/C++ development environment installed that is compatible with the Visual Studio binaries distributed by Python.org (at least, I assume I don't, and that I'd know if I did!).
So is there a pure Python package for pyOIDC, or is there a Windows installer, or is pyOIDC just not compatible with Windows?!