I would like to use tensorflow with ROS and ROS 1 does only support python 2.7 at the moment.
Is there a way to install tensorflow 1 or 2 for python 2.7?
Thanks
According to this older post: How to install Tensorflow on Python 2.7 on Windows?
Tensorflow does not support python2.7 anymore.
This is the system requirement for Tensorflow available: https://www.tensorflow.org/install/pip?hl=en :
System requirements
Python 3.5–3.8
Python 3.8 support requires TensorFlow 2.2 or later.
pip 19.0 or later (requires manylinux2010 support)
Ubuntu 16.04 or later (64-bit)
macOS 10.12.6 (Sierra) or later (64-bit) (no GPU support)
Windows 7 or later (64-bit)
Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019
Raspbian 9.0 or later
GPU support requires a CUDA®-enabled card (Ubuntu and Windows)
Here you have the reference to the C++ reference: https://www.tensorflow.org/api_docs/cc
The easiest way of using tensorflow is to download anaconda and then download the packages of anaconda!
Related
in opensuse leap15.2, how can I upgrade my gnuplot (current version 5.2) to version 5.4 or 5.5. I want to install directly via yast the rpm package, so do not compile from source myself?
Working on python 2.7(not anaconda). Operating system Windows server 2012 R2
The pypi installation mentions two fixes for this, installing Visual C++ redistributable 2015 and Universal C Runtime.
As well as a manual fix for older anaconda versions, which is for python3(I am not using anaconda version, and also my python version is 2.7 so presuming it doesn't apply in my case)
link here:
https://pypi.org/project/opencv-python/
installed both the dependencies but couldn't get it to work.
Any ideas on how I may fix this?
Since Python 2.7 is still supported, this could be the possible solution.
Installing OpenCV from prebuilt binaries:
Below Python packages are to be downloaded and installed to their default locations.
Python-2.7.x
Numpy
Matplotlib
Install all packages into their default locations. Python will be installed to C:/Python27/.
After installation, open Python IDLE. Enter import numpy and make sure Numpy is working fine.
Download latest OpenCV release and install it : Latest OpenCV-build
Goto opencv/build/python/2.7 folder.
Copy cv2.pyd to C:/Python27/lib/site-packeges.
Open Python IDLE and type following codes in Python terminal.
import cv2
print cv2.__version__
On my package manager for canopy, every time I try to download opencv it downgrades several other important packages. I am then not able to upgrade those same packages or run my code. How can I download opencv without downgrading my other packages?
You haven't provided any version or platform information. But perhaps you are using an old Canopy version (current is 2.1.9), or perhaps you are using the subscriber-only "full" installer, which is only intended for airgapped or other non-updateable systems. Otherwise, the currently supported version of opencv is 3.2.0 (build 3.2.0-4) which depends on numpy 1.13.3, which is the currently supported version of numpy.
Im running Visual Studio Code on OpenSuse 13.2 and get "Cannot start Omnisharp because Mono version >=3.10.0 is required". I have reinstalled mono-complete and mono-devel.
OpenSuse 13.2 repositories contains mono version 3.8.0. To install newer version, firstly uninstall current version of mono and then visit this page and click "1-click Install mono-complete" to install latest version of mono (currently version 4.0.2)
I need to install pyproj on my machine and it give the above mentioned error. I guess it would be the same for other python components that are using C++ code:
My situation:
Win 7 64 bit running.
installed:
VS 2008 express
MS VS patch for python 2.7 http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505
Python Setup Tools available here: http://pypi.python.org/pypi/setuptools#downloads
set up the path variables and set
VS90COMNTOOLS
Value: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
I try to install the pyproj: http://jswhit.github.io/pyproj/
but it returns the same error:
File "msvc9compiler.py", line 271, in query_vcvarsall raise DistutilsPlatformError("Unable to find vcvarsall.bat") distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
the purpose of this is to get the pygrib package running: http://jswhit.github.io/pygrib/docs/index.html
Does anybody know how to solve the problem?
You can install this without needing to compile it by using a precompiled Python wheel. You can find a compatible wheel for pyproj at this page containing unofficial wheels.
You are specifically looking for pyproj-1.9.4-cp27-none-win_amd64.whl. Once you download the whl file, you can install it with pip using
pip install pyproj-1.9.4-cp27-none-win_amd64.whl
And that will install it for you, skipping the compilation process.