Cannot install python arcade on mac - python

I was trying to do something with python, so I tried to install arcade. Just pip install arcade didn't work and I've tried other stuff too like following this link. None of it worked, It always gave me the same error. This is the whole log.
Collecting arcade
Using cached arcade-2.5.2-py3-none-any.whl (38.3 MB)
Collecting numpy==1.19.2
Using cached numpy-1.19.2.zip (7.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: still running...
Preparing wheel metadata: finished with status 'done'
Collecting pytiled-parser==0.9.4a3
Using cached pytiled_parser-0.9.4a3-py3-none-any.whl (15 kB)
Collecting pillow~=8.0
Using cached Pillow-8.1.0-cp39-cp39-macosx_10_10_x86_64.whl (2.2 MB)
Collecting pyglet<2,>=1.5.11
Using cached pyglet-1.5.14-py3-none-any.whl (1.1 MB)
Collecting pymunk~=5.7
Using cached pymunk-5.7.0-py2.py3-none-macosx_10_13_x86_64.whl (201 kB)
Collecting cffi!=1.13.1
Using cached cffi-1.14.4-cp39-cp39-macosx_10_9_x86_64.whl (177 kB)
Collecting pyyaml~=5.3
Using cached PyYAML-5.4-cp39-cp39-macosx_10_9_x86_64.whl (259 kB)
Collecting shapely~=1.7
Using cached Shapely-1.7.1.tar.gz (383 kB)
ERROR: Command errored out with exit status 1:
command: /Users/AaronKanaron/PycharmProjects/arcadeTest/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py'"'"'; __file__='"'"'/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-pip-egg-info-4y1krwzl
cwd: /private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/
Complete output (12 lines):
Failed `CDLL(/Library/Frameworks/GEOS.framework/Versions/Current/GEOS)`
Failed `CDLL(/opt/local/lib/libgeos_c.dylib)`
Failed `CDLL(/usr/local/lib/libgeos_c.dylib)`
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py", line 85, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/shapely/_buildcfg.py", line 190, in <module>
lgeos = load_dll('geos_c', fallbacks=alt_paths)
File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/shapely/_buildcfg.py", line 162, in load_dll
raise OSError(
OSError: Could not find library geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib', '/usr/local/lib/libgeos_c.dylib']
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It can't find setup.py, and what I've searched nothing has helped me so far. So if any of you could help me with this problem it would be fantastic.

You have to install the library GEOS on your system. Run this command - brew install geos.
If you don't have brew, you can download it here: https://brew.sh
On ubuntu, you can do $ sudo apt-get install libgeos-dev.

Related

Error in installing pip package auto-py-to-exe

I am trying to install auto-py-to-exe. In fact, I installed it but a months ago, I reinstalled my windows 10. After that, I am continuously trying to install auto-py-to-exe. Whenever I type pip install auto-py-to-exe in command prompt this output comes out
Collecting auto-py-to-exe
Using cached auto_py_to_exe-2.7.11-py2.py3-none-any.whl (75 kB)
Collecting Eel==0.12.4
Using cached Eel-0.12.4.tar.gz (15 kB)
Collecting pyinstaller>=4.1
Using cached pyinstaller-4.1.tar.gz (3.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting bottle
Using cached bottle-0.12.19-py3-none-any.whl (89 kB)
Collecting bottle-websocket
Using cached bottle-websocket-0.2.9.tar.gz (2.0 kB)
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Collecting whichcraft
Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting pyinstaller-hooks-contrib>=2020.6
Using cached pyinstaller_hooks_contrib-2020.11-py2.py3-none-any.whl (172 kB)
Collecting altgraph
Using cached altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in c:\users\mniza\appdata\local\programs\python\python39\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (49.2.1)
Collecting pywin32-ctypes>=0.2.0; sys_platform == "win32"
Using cached pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting pefile>=2017.8.1; sys_platform == "win32"
Using cached pefile-2019.4.18.tar.gz (62 kB)
Collecting gevent-websocket
Using cached gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
Using cached gevent-20.12.1.tar.gz (5.9 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\mniza\appdata\local\programs\python\python39\python.exe' 'c:\users\mniza\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\mniza\AppData\Local\Temp\pip-build-env-hh9ixh_9\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17, < 2.0 ; platform_python_implementation == '"'"'CPython'"'"''
cwd: None
Complete output (29 lines):
Collecting setuptools>=40.8.0
Using cached setuptools-51.1.1-py3-none-any.whl (2.0 MB)
Collecting wheel
Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting Cython>=3.0a5
Using cached Cython-3.0a6-py2.py3-none-any.whl (1.0 MB)
Collecting cffi>=1.12.3
Using cached cffi-1.14.4-cp39-cp39-win_amd64.whl (179 kB)
Collecting greenlet<2.0,>=0.4.17
Using cached greenlet-0.4.17.tar.gz (61 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, Cython, pycparser, cffi, greenlet
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\mniza\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mniza\\AppData\\Local\\Temp\\pip-install-c3p25el7\\greenlet\\setup.py'"'"'; __file__='"'"'C:\\Users\\mniza\\AppData\\Local\\Temp\\pip-install-c3p25el7\\greenlet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\mniza\AppData\Local\Temp\pip-record-sq3sf8sv\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\mniza\AppData\Local\Temp\pip-build-env-hh9ixh_9\overlay' --compile --install-headers 'C:\Users\mniza\AppData\Local\Temp\pip-build-env-hh9ixh_9\overlay\Include\greenlet'
cwd: C:\Users\mniza\AppData\Local\Temp\pip-install-c3p25el7\greenlet\
Complete output (5 lines):
running install
running build
running build_ext
building 'greenlet' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\mniza\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mniza\\AppData\\Local\\Temp\\pip-install-c3p25el7\\greenlet\\setup.py'"'"'; __file__='"'"'C:\\Users\\mniza\\AppData\\Local\\Temp\\pip-install-c3p25el7\\greenlet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\mniza\AppData\Local\Temp\pip-record-sq3sf8sv\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\mniza\AppData\Local\Temp\pip-build-env-hh9ixh_9\overlay' --compile --install-headers 'C:\Users\mniza\AppData\Local\Temp\pip-build-env-hh9ixh_9\overlay\Include\greenlet' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the 'c:\users\mniza\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\mniza\appdata\local\programs\python\python39\python.exe' 'c:\users\mniza\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\mniza\AppData\Local\Temp\pip-build-env-hh9ixh_9\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17, < 2.0 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the 'c:\users\mniza\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
I assume that there is something wrong with Microsoft Visual C++ as I can see in the error
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
But when I try to install Microsoft Visual C++ I see this window error in installing Microsoft Visual C++ 14.0 (picture)
I again checked the program list and I am a little bit confused which one should I uninstall and which one should I keep program list (picture). Overall I am stuck in this issue for more than three weeks and I will be grateful if anyone can solve this issue.
At last, I have figured out what is the problem. First I have to install a suitable wheel file of greenlet from https://www.lfd.uci.edu/~gohlke/pythonlibs/#greenlet. And then open the command prompt in the directory of the wheel file. Then type
pip install (filename)
After that, again download the wheel file of gevent from https://www.lfd.uci.edu/~gohlke/pythonlibs/#gevent. As before open command prompt in the directory of the wheel file and type pip install (filename) again.
After all of this, type pip install auto-py-to-exe
Hope this will to you as it worked to me!

Orange3 installation with pip3

I have been trying to install orange3 on my Linux machine. Upon trying:
pip3 install orange3
I get this verbos error:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting orange3
Using cached Orange3-3.27.1-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB)
Collecting AnyQt>=0.0.11
Downloading AnyQt-0.0.11-py2.py3-none-any.whl (46 kB)
Collecting baycomp>=1.0.2
Using cached baycomp-1.0.2-py3-none-any.whl (17 kB)
Requirement already satisfied: pip>=9.0 in ./.local/lib/python3.6/site-packages (from orange3) (20.2.4)
Requirement already satisfied: scikit-learn!=0.23.0,>=0.22.0 in ./.local/lib/python3.6/site-packages (from orange3) (0.22.1)
...
Collecting orange-widget-base>=4.8.1
Using cached orange_widget_base-4.9.0-py3-none-any.whl (229 kB)
...
Collecting python-louvain>=0.13
Using cached python-louvain-0.14.tar.gz (19 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_us67ap2/python-louvain/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_us67ap2/python-louvain/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-t2a936sw
cwd: /tmp/pip-install-_us67ap2/python-louvain/
Complete output (28 lines):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2455, in resolve
return functools.reduce(getattr, self.attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_us67ap2/python-louvain/setup.py", line 25, in <module>
scripts=['bin/community']
...
raise ImportError(str(exc)) from exc
ImportError: type object 'Distribution' has no attribute '_finalize_feature_opts'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I have already tried updating pip as well as setup-tools using
pip install --upgrade pip
etc but I still get this error.
You probably have a too old version of the setuptools package. Try upgrading it (and pip as well, while you're at it): python3 -m pip install setuptools pip.
Here's a link to a setuptools issue describing the problem: https://github.com/pypa/setuptools/issues/2029

What is missing in Python Flask app that build is failing?

what could be the build failure reason? I tried different versions of MarkupSafe but still its getting failed. Tried running different branches too, all builds are getting failed.
Does it has any version issues? Are there any other libraries required? Using postgres for db.
-----> Python app detected
! Python has released a security update! Please consider upgrading to python-3.6.12
Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Requirements file has been changed, clearing cached dependencies
-----> Installing python-3.6.4
-----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting alembic==0.9.6
Downloading alembic-0.9.6.tar.gz (998 kB)
Collecting arrow==0.12.0
Downloading arrow-0.12.0.tar.gz (89 kB)
Collecting blinker==1.4
Downloading blinker-1.4.tar.gz (111 kB)
Collecting click==6.7
Downloading click-6.7-py2.py3-none-any.whl (71 kB)
Collecting dateparser==0.6.0
Downloading dateparser-0.6.0-py2.py3-none-any.whl (68 kB)
Collecting dominate==2.3.1
Downloading dominate-2.3.1.tar.gz (27 kB)
Collecting feedparser==5.2.1
Downloading feedparser-5.2.1.tar.bz2 (192 kB)
Collecting Flask==0.12.2
Downloading Flask-0.12.2-py2.py3-none-any.whl (83 kB)
Collecting Flask-Bootstrap==3.3.7.1
Downloading Flask-Bootstrap-3.3.7.1.tar.gz (456 kB)
Collecting Flask-Login==0.4.1
Downloading Flask-Login-0.4.1.tar.gz (14 kB)
Collecting Flask-Mail==0.9.1
Downloading Flask-Mail-0.9.1.tar.gz (45 kB)
Collecting Flask-Migrate==2.1.1
Downloading Flask_Migrate-2.1.1-py2.py3-none-any.whl (13 kB)
Collecting Flask-PyMongo==0.5.1
Downloading Flask_PyMongo-0.5.1-py3-none-any.whl (10.0 kB)
Collecting Flask-Script==2.0.6
Downloading Flask-Script-2.0.6.tar.gz (43 kB)
Collecting Flask-SQLAlchemy==2.3.2
Downloading Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl (16 kB)
Collecting Flask-WTF==0.14.2
Downloading Flask_WTF-0.14.2-py2.py3-none-any.whl (14 kB)
Collecting gunicorn==19.7.1
Downloading gunicorn-19.7.1-py2.py3-none-any.whl (111 kB)
Collecting itsdangerous==0.24
Downloading itsdangerous-0.24.tar.gz (46 kB)
Collecting Jinja2==2.10
Downloading Jinja2-2.10-py2.py3-none-any.whl (126 kB)
Collecting Mako==1.0.7
Downloading Mako-1.0.7.tar.gz (564 kB)
Collecting MarkupSafe==1.0
Downloading MarkupSafe-1.0.tar.gz (14 kB)
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uzscpaqz/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uzscpaqz/MarkupSafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-jupo_kuh
cwd: /tmp/pip-install-uzscpaqz/MarkupSafe/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-uzscpaqz/MarkupSafe/setup.py", line 6, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
Try upgrading MarkupSafe to the latest release:
$ pip install --upgrade MarkupSafe

Python package installation via pip error

I’m trying to install few python packages via pip3, but at most of them I’m geting Errors that I don’t understand. For example:
root#turris:~# pip3 install pyshark
Collecting pyshark
Downloading pyshark-0.4.2.9-py3-none-any.whl (31 kB)
Collecting py
Downloading py-1.8.1-py2.py3-none-any.whl (83 kB)
|████████████████████████████████| 83 kB 1.6 MB/s
Collecting lxml
Downloading lxml-4.5.0.tar.gz (4.5 MB)
|████████████████████████████████| 4.5 MB 3.6 MB/s
Installing collected packages: py, lxml, pyshark
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eln_tufx/lxml/setup.py'"'"' ; __file__='"'"'/tmp/pip-install-eln_tufx/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.c lose();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0uhmqqdg/install-record.txt --single-version-externally-managed --compile --insta ll-headers /usr/include/python3.6/lxml Check the logs for full command output.
I have python3.6 installed and pip 20.0.2. I already updated setuptools and wheel. Now i get this:
root#turris:~/skripty# python3.6 -m pip install numpy
Collecting numpy
Using cached numpy-1.18.2.zip (5.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpf_8xl1dr Check the logs for full command output.
I'm using TurrisOS (modificated OpenWRT distro). Does anyone know what is wrong? Thanks.
EDIT:
Ok, I fixed the error for Pyshark package by this:
opkg update
opkg install python3-lxml
pip3 install pyshark
But I’m still getting another errors when installing e.g. numpy.
root#turris:~# pip3 install numpy
Collecting numpy
Using cached numpy-1.18.2.zip (5.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp6bzl_666 Check the logs for full command output.
Or another package and different error:
root#turris:~# pip3 install matplotlib
Collecting matplotlib
Downloading matplotlib-3.2.1.tar.gz (40.3 MB)
|████████████████████████████████| 40.3 MB 11.3 MB/s
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Is there a proper way to install tensorflow in Blender using python console?

MY setup:
Blender 2.82
Python 3.7.4
I am trying to pip install tensorflow in blender
**pip.main(['install','tensorflow'])**
However i receive this error and the tensorflow is not installing.
Collecting tensorflow
Using cached tensorflow-2.1.0-cp37-cp37m-win_amd64.whl (355.8 MB)
Collecting keras-preprocessing>=1.1.0
Using cached Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41 kB)
Collecting protobuf>=3.8.0
Downloading protobuf-3.11.3-cp37-cp37m-win_amd64.whl (1.0 MB)
Collecting wheel>=0.26; python_version >= "3"
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting tensorboard<2.2.0,>=2.1.0
Downloading tensorboard-2.1.1-py3-none-any.whl (3.8 MB)
Collecting google-pasta>=0.1.6
Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting astor>=0.6.0
Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting opt-einsum>=2.3.2
Downloading opt_einsum-3.2.0-py3-none-any.whl (63 kB)
Collecting tensorflow-estimator<2.2.0,>=2.1.0rc0
Downloading tensorflow_estimator-2.1.0-py2.py3-none-any.whl (448 kB)
Collecting termcolor>=1.1.0
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
1
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Blender Foundation\Blender 2.82\blender.exe' -c 'import sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\TB\\AppData\\Local\\Temp\\pip-install-
l65a801l\\termcolor\\setup.py'"'"'; __file__='"'"'C:\\Users\\TB\\AppData\\Local\\Temp\\pip-
install-l65a801l\\termcolor\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
__file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\TB\AppData\Local\Temp\pip-install-
l65a801l\termcolor\pip-egg-info'
cwd: C:\Users\TB\AppData\Local\Temp\pip-install-l65a801l\termcolor\
Complete output (9 lines):
Read prefs: C:\Users\TB\AppData\Roaming\Blender Foundation\Blender\2.82\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender 2.82\2.82\python
unknown argument, loading as file: -c
Error: Cannot read file 'C:\Users\TB\AppData\Local\Temp\pip-install-l65a801l\termcolor\-c': No
such file or directory
Error: argument has no '.blend' file extension, not using as new file, exiting!
C:\Users\TB\AppData\Local\Temp\pip-install-l65a801l\termcolor\-c
Saved session recovery to 'C:\Users\TB\AppData\Local\Temp\quit.blend'
Warning: property 'release_confirm' not found in keymap item 'OperatorProperties'
Blender quit
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried also with other version of blender but going to a lower version of blender means a lower version of python. I need to use a higher version if i want to be able to use tensorflow.
Steps that solved my issue:
- set the path of blender's python in environment variables:
C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\bin - where exe is located
C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\Scripts
- go to python.exe folder in blender and start powershell
- run ./python.exe -m pip install tensorflow==2.0
After these steps i was able to use tensorflow in Blender.

Categories