how to install tensorflow to canopy - python-3.x

I am using canopy Version: 2.1.6.3665 (32 bit). Looking for help to install tensorflow. I tried following command using canopy command promt, however it didn't work
pip3 install --upgrage tensorflow
thanks

As far as I know, the tensorflow package is only distributed in 64 bit wheels (see https://pypi.python.org/pypi/tensorflow). Why do you need to use 32-bit Python?

Related

is there any way to install cupy without Cuda

pip install cupy won't install cupy without cuda.
Linux: lubuntu v21.10
pip v3.10
conda v22.11.1
I have linux installed on an older laptop and it doesn't have any dedicated GPU.
I have a python framework I'm trying to test out and it requires cupy to run. I tried pip install cupy but it wouldn't run without any cuda installation.
I tried conda install cupy but the framework won't run when conda install cuda
https://pypi.org/project/cupy/ is "NumPy & SciPy for GPU" (emphasize mine — phd). You cannot install it without CUDA.
If you want to use pyVHR without GPU you need to switch to the branch pyVHR_CPU. There is pyVHR_CPU_env.yml to create CPU-ony conda environment. See the installation instructions.
Another approach would be to install an emulator (qemu, VirtualBox, etc.) and configure it to emulate a GPU. Not sure if it worth the trouble in terms of speed.

I am having issue installing numpy in windows

I had Python 3.9.0 32 bit installed in my windows system and successfully installed numpy using the command: pip install numpy in the command Prompt.
I then had to switch to Python 3.9.0 64 bit and I was unable to use numpy from here on so I tried to install it again but I got the following error;
ERROR: Command errored out with exit status 1
When I used the command pip uninstall numpy, I get the following message:
WARNING: Skipping numpy as it is not installed*
I already uninstalled Python 3.9.0 64 Bit and reinstalled it again and it still did not work.
I even used the command pip install -U pip setuptools and nothing.
I will appreciate if anyone can help. Thank you in advance.
i think Windows has both Python versions mixed up, or there are traces of both 32 bit and 64 bit, have a look at the PATH environment variables, and other variables relating to Python are using the right file path.
If this does not resolve the issue remove both versions of Python and use a CCleaner to remove any traces of Python from your computer, and check what you are removing with CCleaner, and then install Python 32 bit version again, and then numpy.

Installing Spacy is failing with Python 3.7 on Windows 10

Installing Spacy on Windows 10 with pip is failing. Installing any other of a number of modules is working fine for me.
Here is a pastebin containing the error message:
pip install -U spacy
or
python -m pip install spacy
output:
https://pastebin.com/Y9np4veN
I have tried this both with and without virtualenv and it is failing in the same manner either way. I have also already tried installing and updating setuptools. I've ensured that I am using Python 3.7 and pip3. There is no other version of python or pip installed on my PC.
I downgraded to Python 3.6 and was able to successfully install spacy
Using x86-64 ("64-bit") version of Python 3.7 (3.7.4) instead of x86 ("32-bit") one on Windows fixed the issue for me.

xgboost-...whl is not supported wheel in this platform

Similar to:
whl is not a supported wheel on this platform
xgboost pckage for python 3.6
But both didn't work for me.
I need to install xgboost on machine without internet.
I downloaded xgboost-0.81-py2.py3-none-win_amd64.whl file from https://pypi.org/project/xgboost/#files
My environment:
Windows X64
Python 3.7.0
pip 19.0.1
I got an error:
Same with "xgboost-0.81-cp37-cp37m-win_amd64.whl" from this website
I tried in similar way install "scikit_learn-0.20.2-cp37-cp37m-win32.whl" and everything went well.
I also tried
pip download xgboost -d "C:\USers...\XGBoost"
tar cvfz xgboost.tgz XGBoost
but I have error:
"tar" is not recognized as an internal or external command
I tried …win32.whl and everything went well.
You have 32-bit Python. With it you cannot install 64-bit wheel (amd64.whl). Download 32-bit wheel.
Or replace your Python with 64-bit Python and reinstall all packages.
You can use Anaconda Powershell Prompt(menu->Anaconda->Anaconda Powershell Prompt) to install xgboost
command:pip install xgboost
hope it helps you

Tensor flow package installation in PyCharm

I have been successfully using PyCharm for my python work.All the packages can be easily installed by going to settings and then project interpreter but tensorflow installation is showing error.In suggestions it asked me to upgrade pip module.But even after that it shows error with following message:
" Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow"
I am able to install all other packages but error is with tensorflow only.I am using windows.
Please run pip install tensorflow in command line and post the output here. Tensorflow can be installed on Windows but the process is often annoying.
You could also tried anaconda. It is has very nice UI and you could switch between different version.

Resources