Installing PILLOW on python portable version - portability

I'm using portable version of PYTHON 3.10.0, is there anyway to install pillow ?
I have downloaded the PILLOW 2.2.2 package.
Thanks

Related

error Installing CNTK for Python 3.9 on anaconda

I want to install CNTK with anaconda prompt (Python version 3.9.12)
I used following command:
pip install https://cntk.ai/PythonWheel/GPU/cntk_gpu-2.7.post1-cp36-cp36m-win_amd64.whl
and got this error:
ERROR: cntk_gpu-2.7.post1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
What is the right link that support my platform?
CNTK is no longer actively developed, latest version is 2.7 which works with Python 3.6
That means, Python 3.9 isn't supported.
You can refer to official CNTK page
https://learn.microsoft.com/en-us/cognitive-toolkit/Setup-Windows-Python?tabs=cntkpy26

Incompatible version requirements when install package through pip

I have a conda environment. I want to install DeepSpeech in it. When I install it through pip I get an error, but the deepspeech package still gets installed.
ERROR: tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you'll have scipy 1.5.0 which is incompatible.
ERROR: tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you'll have tensorboard 2.2.1 which is incompatible.
What does this mean? I know I had tensorflow installed before, does this mean it got reinstalled, but it still has previous dependencies or were other libraries changed and the previous tensorflow is now incompatible.
The output of pip3 check
tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you have scipy 1.5.0.
tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you have tensorboard 2.2.1.
pathos 0.2.7 has requirement dill>=0.3.3, but you have dill 0.2.9.
multiprocess 0.70.11.1 has requirement dill>=0.3.3, but you have dill 0.2.9.
Try it:
pip uninstall scipy
pip uninstall tensorboard
pip install --ignore-installed tensorflow==2.1.0

Update Software Version in Anaconda

I have installed python and many other useful tools on my Ubuntu 14.04 using Anaconda. I installed pysam (htslib interface for python) using
conda install pysam
However this installs the old version (0.6). The current version is 0.8.4. How can I install that version using conda. I don't want to use pip install pysam because I read somewhere it might cause problems.
Thanks.
Anaconda only provides version 0.6. You can install from binstar with:
conda install -c https://conda.anaconda.org/uhlitz pysam
This should give you version 0.8.3 for linux64. Other channels are also available.

Install packages for python 3.x using pip

My OS is Mac where the inbuilt python is 2.7 but I only want to use python 3.x.
Now I want to install some packages using pip for 3.x version, but the function pip is not defined in shell.
So how should I proceed?
Starting with 3.4.0, the PSF Mac OS X installer installs pip by default. If you do not have 3.4 already, I recommend that you install 3.4.2rc1 now or wait a few days or a week for the final 3.4.2 download. And do check the mac and tkinter info link on that page.

No ZLIB support with Pillow w/ Python3.3

I'm having difficulty getting png support into a django project.
I'm in a virtual env with python 3.3.2 and Django 1.5. Everything ran smoothly when on linux, but I've moved over to OSX and am having some trouble getting situated.
I have been using pillow for image support in the project, but on osx when installing pillow I get:
--------------------------------------------------------------------
PIL SETUP SUMMARY
--------------------------------------------------------------------
version Pillow 2.1.0
platform darwin 3.3.2 (default, Aug 14 2013, 21:19:39)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]
--------------------------------------------------------------------
--- TKINTER support available
--- JPEG support available
*** ZLIB (PNG/ZIP) support not available
*** TIFF G3/G4 (experimental) support not available
*** FREETYPE2 support not available
*** LITTLECMS support not available
*** WEBP support not available
I only care about the missing zlib. I have no idea how to get this going. Hours of trying various google results didn't help, so here I am. There are no dev packages like on linux, so I installed libpng, libzip via brew but that wasn't right apparently.
Does anyone know how I might tackle this?
This is what worked for me (OSX 10.9, Python 2.7.8):
$ brew tap homebrew/dupes
$ brew install zlib
$ brew link --force zlib
Then install Pillow:
$ pip install Pillow
Before installing Pillow you should install its dependencies. To fix:
First uninstall Pillow
pip uninstall Pillow
Then install it's dependencies
brew install libtiff libjpeg webp littlecms
I already had installed the following, but you can give it a try:
brew install libpng zlib
Re-install Pillow
pip install Pillow
This command in your virtualenv should help without tapping dupes in homebrew:
pip install -I --no-cache-dir pillow -v --global-option=build_ext --global-option="-I$(xcrun --show-sdk-path)/usr/include"
It works for me on OS X El Capitan but it should also work on other versions.

Resources