Prior to blender 2.79.x (nightly builds now), all blender versions used python 3.5, thus. Now that blender uses 3.6, all those builds will fail to work just as you.
by Jacek Last Updated April 23, 2017 01:26 AM - source
I try to learn TensorFlow with Python. My problem is with import TF module. Here is my configuration: Python 3.6.1, Windows 7 (with MSVCP140.dll)
I've installed TensorFlow by command (in power shell). It works.
But when I run python environment and try import Tensor Flow
I get errors, this error raise another errors related with it, but at the beginning I want to resolve this first
![Use Use](/uploads/1/2/4/9/124931896/739085797.png)
Traceback (most recent call last): File'C:UsersJacekAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonpywrap_tensorflow.py',line 18, in swig_import_helperfp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file)]) File'C:UsersJacekAppDataLocalProgramsPythonPython36libimp.py',line 296, in find_moduleraise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pywrap_tensorflow'
Tags : pythonwindowsinstallationtensorflowpip
This is a known error. There is a file named
MSVCP140.DLL
, that you will need in your system to run TensorFlow. Check if this file is in your %path%
. If it is not, download Visual Studio C++. It is free and you can download it here: https://www.visualstudio.com/vs/cplusplus. Solution:-
Don't suffer a lot. Simply downgrade your python version from 3.6.1 to 3.5.2 and
install tensorflow again.. you need not to upgrade the package.
'pip install tensorflow' will automatically download latest version (probably
1.0.1)
Steps:-
Step 1:- conda search python
Step 2:- conda install python=3.5.2
Step 3:- pip install tensorflow
Step 4:- import tensorflow as tf
Horray!!.. It works..
Hope you may not get the same error again!!
Solution is downgrade Python to version 3.5, and install again TensorFlow. It works for me
The problem was the cuDNN Library for me - for whatever reason cudnn-8.0-windows10-x64-v6.0 was NOT working - I used cudnn-8.0-windows10-x64-v5.1 - ALL GOOD!
My setup working with Win10 64 and the Nvidia GTX780M:
- Be sure you have the lib MSVCP140.DLL by checking your system/path - if not get it here
- Run the windows installer for python 3.5.3-amd64 from here - DO NOT try newer versions as they probably won't work
- Get the cuDNN v5.1 for CUDA 8.0 from here - put it under your users folder or in another known location (you will need this in your path)
- Get CUDA 8.0 x86_64 from here
- Set PATH vars as expected to point at the cuDNN libs and python (the python path should be added during the python install)
If you run Windows 32 be sure to get the 32 bit versions of the files mentioned above.
Related Questions
Installing Tensorflow in Windows 10 using Python35
Updated May 22, 2017 05:26 AMInstall tensorflow windows - python conflict
Updated May 10, 2017 01:26 AMInstallation issues with Tensorflow in Windows10
Updated January 22, 2018 16:26 PMImportError: No module named tensorflow
Updated January 13, 2018 16:26 PMVirtualEnv TensorFlow instalation validation with ImportError: No module named tensorflow
Updated April 27, 2017 01:26 AMMy knowledge of Python is still pretty basic, and I am only now trying to wrap my head around how to use / call libraries from within Maya. (Because I need to create a basic UI from QT Designer and have it be opened in Maya after converting it to a .py file)
After I learned to properly convert a .ui to a .py, I now get this error in Maya
'Module use of python34.dll conflicts with this version of Python'
I tried following what was said here and here, but even then - after setting these environment variables...
PYTHONHOME = C:Program FilesAutodeskMaya2016binmaya.exe
PYTHONPATH = C:Python34
... I a still unable to run a basic .py file. In fact - as long as the PYTHONHOME variable is in effect, Python from within Maya no longer does anything.
This code below is the resulting python file that I got from converting the .ui file that I saved out of QT Designer.
I've come across some different online notes that advised the use of PySide, and after trying to use:
I still couldn't test if this works, because apparently QtWidgets isn't a module?
I'm pretty lost. The bigger picture is that I just want to be able to run a ui created from QT Designer from Maya's script editor. I have no idea where to begin with learning about libraries. Would anyone here be kind enough to give some advice?
Additional info:
Thank you for your time.
Community♦
GogoGogo
1 Answer
Maya's python interpreter is in the 2.7 series (or 2.6 for Maya 2013 and earlier). Your
PYTHONPATH
is pointing at a python 3.4 install. You also want to make sure that if your Python 3.4 is in PATH
it comes later than the maya python install location. This is all to makes sure that Maya doesn't get confused and try to run python 3 code or dlls which it cannot handle.Also, maya 2016 is running on PyQT4. Maya 2017 runs on PyQT5. So you'll probably want to use a PyQT4 version of designer
Related:
theodoxtheodox![Importerror Importerror](/uploads/1/2/4/9/124931896/179531736.jpg)
10.1k22 gold badges1616 silver badges3434 bronze badges