Issue
I was using Python 3.6.5 64 bit with Anaconda that was working for me. At the moment, I need to connect LabView to Python. As I understood, LabView supports the Python version 3.6 and the bitness of python and LabView have to be same. I have installed LabView 32 bit on my windows (64 bit) as they recommended to install LabView 32 bit even if we have windows 64.
So, I installed Python 3.6.0 32 bit then, by using python shell I made a simple code with importing numpy module and connect it to LabView, I works. But, when I write a code that needs importing matplotlib, it has the version error in python shell:
AttributeError: 'version_info' object has no attribute '__version__'
So, I cannot integrate it with LabView.
when I was installing modules (pip, matplotlib and ...), I changed the path to: "C:\Users\user\AppData\Local\Programs\Python\Python36-32\Scripts>"
Then wrote: pip install numpy
and pip install matplotlib
. There is no error when I install them but when I want to run a simple code by python shell it cannot import matplotlib. I also have tried the old versions of matplotlib by pip install matplotlib==version number, but it didnt solve the problem.
On the other hand every thing is ok in anaconda 64 bit.
Could you please help me with this?
Solution
I think this is because there are two versions of python on your computer. When you want to reference to a particular version of python just do: py - version
For example, if you want to reference to python 3.10 in cmd, do: py - 310 And when you want to reference to 3.9 do: py - 39
To add the bit version add a dash and the bitness
eg: py -3.9-64
eg: py -3.6-32
Make sure you have the correct spacing^
Answered By - Raed Ali
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.