installing pythonnet or pywin32 in WSL - windows-subsystem-for-linux

I am trying to install pywin32 and/or pythonnet in Windows 10 WSL.
When I run "pip install pythonnet", I get an error message saying "Failed building wheel for pythonnet".
Attempts at installing pywin32 is similarly unsuccessful.
Any suggestions on how to successfully install either?

Use
pip install pip --upgrade
pip install setuptools --upgrade
and try again.

Related

Unable to install Tensorflow 2.2.0 using pip

I am using ubuntu 20.04 with python 3.6.5 Anaconda. Previously, I have installed Tensorflow 2.0.0a0 and it was showing in both "pip list" and "conda list" but Now I want to install version 2.2.0 because I am unable to import "stellargraph" as it requires 2.1.x or higher version But when I uninstalled 2.0.0a0 completely and installing Tensorflow 2.2.0 previously, it was not showing in pip list or conda list and so, again when I am trying to install it on terminal using :
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.2.0-cp36-cp36m-manylinux2010_x86_64.whl
as mentioned here, I am getting this output on terminal.
But it is not installed as I can't see it in pip list and site-packages folder.
pip list
Can anyone please help me ?

How to update scrapy from 1.8.0. to newest (2.1.0) on Ubuntu 18.04

I installed scrapy recently by using the pip command (pip install scrapy). Now I discovered that the installed version is 1.8.0. How to get it updated to the most recent 2.1.0? Uninstalling and reinstall did not work.
UPDATE, PARTLY SOLVED:
I updated ip through python -m pip install --upgrade --force-reinstall pip. That did not change the outcome of the pip install -U scrapy. But forcing pip to be run by python3 did. So after python3 -m pip install -U scrapy my scrapy version is now 2.1.0. Looks like some issues with the two python versions on my machines and some settings? Anybody can shine a light on this?

When I try to run code in tensorlflow I get this error. How can I fix this?

ImportError: cannot import name 'abs'
The fixes I already tried were going into my Anaconda environment, activating it
and running this command:
pip uninstall tensorflow protobuf --yes
pip install --ignore-installed --upgrade tensorflow-gpu
Now the error is the same.
Is there a reason why you're installing in pip if you use Anaconda? tensorflow-gpu is available in anaconda. Try
conda remove tensorflow*
conda remove protobuf
pip uninstall tensorflow*
pip uninstall protobuf
conda install tensorflow-gpu

Tensorflow installation error

I am trying to install tensorflow with virtualenv
I have successfully went through the first 5 steps but on the 5th
pip install --upgrade tensorflow
I am getting an error
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
OSError: [Errno 1] Operation not permitted: '/tmp/pip-Z5MKQS-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
You might be installing globally try adding sudo
sudo pip install --upgrade tensorflow
Otherwise just upgrade numpy separately with sudo and then you can try to install tensorflow locally.
I have no idea why you have that error.
But you can try with first installing pip3 and then try install with pip3 as
pip3 install --upgrade tensorflow
This will help you.

Whl file for tensorflow installation on windows

I installed pip via get-pip.py script
$ python get-pip.py --proxy="proxy.intranet.com:8080"
Collecting pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 559kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 2.9MB/s
Installing collected packages: pip, wheel
Successfully installed pip-8.1.2 wheel-0.29.0
it worked fine. On upgrade, it seemed to be the latest version.
$ python -m pip install -U pip
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages
now, when I try to install tensorflow on windows using the below command, it doesn't work.
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
**tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform**.
I tried to search a wheel file for windows, but couldn't find it. Anyone knows the locations to the whl file? Thanks in advance!
TensorFlow is only compatible with 64bit. Ensure that the Python installation is not 32bit.
TensorFlow is now available on Windows, from version 0.12 onwards. You can install the PIP package from PyPI, using the following command (for the CPU-only build):
C:\> pip install tensorflow
...or the following command if you have a CUDA 8.0-compatible GPU:
C:\> pip install tensorflow-gpu