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.
Related
I'm trying to install a python package (specifically pandas) into Visual Studio code on a chromebook's linux virtual machine. I've tried many different things but none of them seem to work: trying to use pip install pandas results in bash: pip: command not found. I have no idea where the actual python interpreter is located, so I can't go to the source. I thought it was that I wasn't using the correct terminal, but the only other option is JavaScript Debug Terminal. What am I doing wrong? Is it even possible?
Pip is a python package management tool, which provides the functions of finding, downloading, installing and uninstalling Python packages. However, this tool is not included in the system and needs to be installed manually. Here is the official website of PIP, which contains installation instructions.
I uncompress Embed Python, download pip wheel extract it and put to lib\site-packages. Next run python -m pip install pywin32. So far so god. But when running program it fails to load pywin32file.pyd. With dependency walker I checked and realized it is x86 architecture while running x64 Python. I tried with x64 downloaded version of pywin32 wheel file and got error "Unsupported platform". pip installed x86 wheel but is is not correct.
At the end, I unzipped x64 version of pywin32 wheel into lib\site-packages. Two dlls from pywin32_system32 copied to dll search path and it works now.
We are distributing Embed Python with handful of libraries and pip is god way to get them.
What causes wrong architecture detection by pip and how to solve problem?
The problem you encountered may have had a different cause to my issue, but I was able to resolve a similar problem with pip installing 32-bit packages on 64-bit Python by changing my VSCMD_ARG_TGT_ARCH environment variable from x86 (which seems to be the default setting if you are using the Visual Studio Developer Command Prompt or anything that relies on it) to x86_64.
This seems to be a bug in packaging that was just fixed this April, so, as of this writing, the fix may not have yet made its way into pip.
i am new to python. i am using python 3.7 and installed pandas using pip. when i checked for pandas version i found all the dependencies are not installed . so i read somewhere anaconda installation will install all the dependent packages. so i have installed anaconda still when i search for python version it shows that packages are not installed
Pandas version image
i am using visual studio code for programming python
i want to use pandas with full functionality
can someone help me on this installation
thank you
The process I follow:
Install anaconda from this link https://www.anaconda.com/distribution/
Add the Anaconda program directory to your Path environment variable. See here > https://www.quora.com/How-can-I-add-conda-command-into-the-PATH-environment-variable-so-that-it-recognizes-the-instruction-given-that-the-executable-program-is-already-installed
Sometimes you may also need to add ".....Anaconda3\Library\bin" as well.
Open command prompt and type "conda install pandas", to install pandas.
This has always worked for me.
This issue in some form has come up before, however I am having a variant of this issue.
I had python 3.8 installed. Tensorflow does not have a version for this python.
I therefore installed python 3.7 and set up a virtual environment using virtualenv.
In visual studio code I even updated the settings json "python.pythonPath": to the correct path for version 3.7 of python.
I install the correct version of tensorflow using the correct link for 3.7 on the site:
'''pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-manylinux2010_x86_64.whl'''
But i still get the error
"ERROR: tensorflow_cpu-2.1.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform."
When i type python -V I still get Python 3.8.1, could this mean I am not correctly using the virtual environment?
However I have now set up virtual environment using anaconda which is limited to 3.7 and it still says 3.8 when using "python -V" and i get the same error when trying to install.
You can try to either reinstall anaconda, visual studio, or type in the command "pip install --upgrade tensorflow". This should work without the link.
After creating the virtual environment you need to activate it if you haven't already. Once you do, your command line prompt should indicate that a new version of Python, in your case 3.7 is now running.
I ended up using Anaconda with Python 3.6, it seems tensorflow would not work for 3.7 on windows.
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.