python package version incompatibility even on virtualenv - python

I am trying to install cuckoo sandbox(malware analysis tool).
I am doing pip install -U cuckoo as stated in cuckoo documentation, but it gives me following error
pandas 0.23.3 has requirement python-dateutil>=2.5.0, but you'll have python-dateutil 2.4.2 which is incompatible
So I thought maybe there is some package named python-dateutil and pandas is using its some version which is >= 2.5.0 but cuckoo needs its 2.4.2 version, so to not cause instability it's not getting installed.
So I thought of creating a virtualenv venv and install cuckoo in that. As there are no pandas in venv/lib/python2.7/site-packages installing a previous version of python-dateutil shouldn't be a problem. But again I am getting the same error. I am not getting where is the problem.

Related

Can't install tensorflow on ubuntu 20.04.3 Python 3.6.15 pip 21.2.4

I have been around the mulberry bush for a few days trying to get tensorflow installed on an Ubuntu system. My specifications are;
Ubuntu: 20.04.3
Python (virtual environment): 3.6.15
Pip: 21.2.4
Tensorflow version wanted: 1.13.1
Tensorflow version will take: anything at this point
I followed a number of answers on the web. Got a compatible version of Python. Got the latest pip....
When I use the command;
pip3 install tensorflow==1.13.1
I get;
ERROR: Could not find a version that satisfies the requirement tensorflow==1.13.1 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.13.1
when I do a pip_search on tensorflow, it shows tensorflow 2.6.0.
But when I do;
pip3 install tensorflow==2.6.0
I get the same error.
when I use the --upgrade switch to pip, I get the same error. I tried to install from a wheel file, but the file was incompatible on my system.
Any help is appreciated.
As per documentation of Tensorflow, version 1's final release that can be downloaded/installed is 1.15. Below this version are deprecated and no longer available to use in development.
Read it about here

Pip dependency issue : error: httplib2 0.15.0 is installed but httplib2<0.10,>=0.8 is required by set(['apache-beam'])

when trying to install python project, python setup.py install
I get the error,
error: httplib2 0.15.0 is installed but httplib2<0.10,>=0.8 is required by set(['apache-beam'])
However, looking at the pip dependencies
Imrans-MacBook-Pro:appengine imran$ pip freeze | grep httplib2
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: Could not generate requirement for distribution -ix 1.13.0 (/usr/local/lib/python2.7/site-packages): Parse error at "'-ix==1.1'": Expected W:(abcd...)
WARNING: Could not generate requirement for distribution - x (/usr/local/lib/python2.7/site-packages): Parse error at "'-===x'": Expected W:(abcd...)
google-auth-httplib2==0.0.3
httplib2==0.9.2
Could you please let me know from where it is taking the version 0.15.0, and why it is not using 0.9.2 instead ?

Installing tensorflow-data-validation with pip installation

I have tried to install tensorflow-data-validation 0.9.0 with pip installation, but it keeps giving me the same error: Could not find a version that satisfies the requirement tensorflow-data-validation...
isn't this version available for windows or i am just missing something?
From the PyPi documentation on tensorflow-data-validation you can see the version compatibility:
Requires: Python >=2.7,<3
So you won't be able to install it with other versions (like your 3.6.2).

Anaconda3, Python 3.6 - pip install imagenet_utils - error message: Could not find a version that satisfies the requirement imagenet_utils

Anaconda3, Python 3.6, pip version 9.0.1
pip install imagenet_utils
Error message:
Could not find a version that satisfies the requirement imagenet_utils (from versions: ) No matching distribution found for imagenet_utils
Please, help.
Read me docs on github indicate compatibility up to 3.5. Take a look at some comparable libraries to avoid this issue here:
5 Genius Python Deep Learning Libraries.
Anaconda also offers a conda install version of Keras where this specific package can be accessed:
conda install -c conda-forge keras
then for python script would read:
from keras import imagenet_utils
Assuming compatibility is not the issue, you will need to verify the anaconda package location and make sure that you are installing to that location.

Tensorflow on 32-bit Windows 10: is not a supported wheel on this platform; package missing in current win-32 channels, no matching distribution

I have been following the installation guide from http://machinelearningmastery.com/setup-python-environment-machine-learning-deep-learning-anaconda/
I got & am using:
conda 4.3.22
Python 3.5.3 :: Anaconda 4.4.0 (32-bit)
scipy: 0.19.0
numpy: 1.12.1
matplotlib: 2.0.2
pandas: 0.20.1
statsmodels: 0.8.0
sklearn: 0.18.2
I successfully installed theano & keras. HOWEVER, I FAIL at installing tensorflow. Please HELP.
I created a conda ‘tensorflow’ environment with python 3.5. With command
『pip install –ignore-installed –upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.1-cp35-cp35m-win_amd64.whl』
I got ERROR saying
『tensorflow-1.2.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform』
So i changed to version 1.0.1 and same error.
Version 1.1.0 also same error.
So i deactivated the environment, and type command
『conda install -c conda-forge tensorflow』
I got ERROR
『PackageNotFoundError: Package missing in current win-32 channels』
Instead it says the close match found is “xtensor” which i know is a C++ library that I'm not looking for.
Is it because I’m using a 32-bit Windows 10?
So I also tried running the following :
『python -m pip install –upgrade tensorflow』
and got ERROR of
『Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow』
What more requirements do i need for this?
I tried 『pip3 install tensorflow』 but somehow it could not recognized ‘pip3’. So i type 『where pip3』 and it could not find files for the given pattern. So i type『where python』. It ouput the directory of my python. Then checked if it’s already put under the path inside the environmental variable. And it has. But i still couldn't use pip3 command.
I have tried all the solutions provided from people having similar problem with me and none of them work.
This question has been answered here.
In short, yes, TensorFlow does not support 32-bit platforms. Although if you only plan on writing abstract high-level Keras code then Theano will do just fine.

Categories

Resources