Installing h5py on Windows fails - Possibly a 32 vs 64bit issue? - python

I just switched my python installation to the lovely Anaconda and am trying to get the packages I use often installed and working again. Unfortunately I'm having some problems getting h5py to work - the Python 2.7 installer available from h5py.org seems not to work. After the first screen, an error message pops up saying that Python Version 2.7 is required but was not found in the registry. Python 2.7 is the only version I have on this computer (specifically 2.7.5, Anaconda 1.8.0 (64-bit)). Has anyone else experienced this issue? Some people in a long-forgotten thread were worried it could be a 32 vs 64-bit python issue, but nothing ever came out of that. Any ideas / will I also need a 32-bit python installation for this to work?

Download 64-bit h5py from here and try again
http://www.lfd.uci.edu/~gohlke/pythonlibs/#h5py
(as recommended by http://www.h5py.org/dl/)

Related

Unable to run PythonWin For Python 3.9 64bit

I was trying to create Python executables on Windows 10 Pro (latest) so was upgrading to the latest packages but it's changed.
I've just gotten rid of Python 3.6 and reinstalled Python 3.9. I then went and installed PythonWin for it using the following (there no longer seems to be what was a standard install package):
**pip install pywin32**
Python is on the start menu but, unlike earlier installs, the new way of installing PythonWin this doesn't seem to give me any kind of way to run the program. Surely it should create some kind of shortcut on the start menu?
Any advice on this would be most helpful.
James
SOLVED!
While I still have no idea why a Start Menu shortcut wasn't installed, I have found the executable that runs PythonWin.
It was located in the following folder:
"C:\Users<MyUserID>\AppData\Local\Programs\Python\Python39\Lib\site-packages\pythonwin"
Thanks :)

Is there an appropriate version of Pygame for Python 3.7 installed with Anaconda?

I'm new to programming and I just downloaded Anaconda a few days ago for Windows 64-bit. I came across the Invent with Python book and decided I wanted to work through it so I downloaded that too. I ended up running into a couple issues with it not working (somehow I ended up with Spyder (Python 2.7) and end=' ' wasn't doing what it was supposed to so I uninstalled and reinstalled Anaconda -- though originally I did download the 3.7 version). It looked as if I had the 2.7 version of Pygame. I'm looking around and I don't see a Pygame version for Python 3.7 that is compatible with Anaconda. The only ones I saw were for Mac or not meant to work with Anaconda. This is all pretty new to me so I'm not sure what my options are. Thanks in advance.
Also, how do I delete the incorrect Pygame version?
just use pip install pygame & python will look for a version compatible with your installation.
If you're using Anaconda and pip doesn't work on CMD prompt, try using the Anaconda prompt from start menu.

cannot setup vpython (videl for python) using python 2.7 and newer pyserial 3.4

I am trying to follow an online tutorial that is a little outdated. But I like the instructor and how he follows his curriculum. He is using python 2.7 in the video and an older version of pyserial (2.6 I believe) that I can no longer find a download for. I went ahead and installed the latest python (3.7), along with the latest revision of pyserial (3.4). And both installed successfully without problems.
However the other IDE-looking program which he uses to code our scripts ("vPython or videl for python"), only supports python versions up to 2.7.9
This made me back-trace and also install an older revision of python (2.7) in a separate directory with python 3.7 still being installed in another.
Since the older version of pyserial is no longer available, I tried to install the newer pyserial 3.4 package using python 2.7 but every time I do it through the windows command line, it gives me an error saying "the module 'serial' is not available'.
This is already after I had extracted the pyserial 3.4 package into the python 2.7 "Lib\site-packages\" directory. And we can clearly see that the 'serial' folder is definitely in the 2.7 python library.
I'm wondering if it cannot install the module because of the differences in revisions or if it's because the command line terminal is defaulting to the latest version of python (3.7) automatically to execute the installation.
If this is incompatible, maybe someone can help provide a link to the older version of pyserial or help me find another solution to this problem.
Edit: I found a version of pyserial 2.7 but it is for 32 bit windows and not 64. I have been sticking to versions of 64 bit for python and vpython.
So I found an older version of pyserial 2.7 for windows 32 bit. I'm not sure if pyserial had a 64 bit version at the time 2.7 was released because I could not find it. I uninstalled python 2.7 64 bit and replaced it with 32 bit, and then did the same for vpython.
This got the program up and running successfully and importing the serial libraries just fine.
The next problem was that the 32 bit vpython and 64 bit arduino's did not play nice together. And I could not get vpython to read serial data from arduino despite copying code verbatum and having it compile correctly.
My solution was just to use the pycharm IDE instead. It has a package installer that just downloads and installs everything for you. Thank god too because I spent around 3 hours trying to get the packages installed manually through the command terminal but kept running into compatibility issues like outdated published files, an annoying syntax error through cmd, a "not supported on this platform" error (despite pip and everything being 100% kosher) and not having microsoft C++ version 14 AND HAVING NO IDEA THIS RESOURCE WAS MISSING.
But pycharm solved all of that. Sorry for the somewhat salty response. I just hope it saves someone else's time. Pretty upset this wasn't suggested on any of the official websites anywhere.

Upgrading python from 32 bit to 64 bit messed up pip (Windows)

I upgraded python from 32-bit version to the 64-bit one, I did this by uninstalling python using add or remove programs and installing a new one from the official installer. While doing so, I also upgraded it from python 3.6 to 3.7.
Now when I try running pip I get the following error
The code execution cannot proceed because python36.dll was not found. Reinstalling the program may fix this problem.
It didn't.
python -m pip works for me but I would still like to fix the original functionality.
This happened with me too and I didn't get any solution to it. But when I installed Python 3.7 then I did not face any problem. And the pip too was working.
Maybe there was an error in the bindings of Python 3.6.

Python 3.5 on Windows10 - unable to install cx_freeze - 'cxfreeze-postinstall' does not exist

I'm trying to install cx_freeze on python, and its just doesn't seem to work. I've tried both through pip in the command line (python -m pip install cx_freeze) and through pycharm community add packages.
At first it gave the notorious unable to find vcvarsall.bat - but I installed visual studios latest with all the c++ compilers.
Now it gives another error message - cxfreeze-postinstall does not exist:
enter image description here
Please help me!
Well, I tried installing the win32 version - and it worked... Have no idea why, since my computer is a 64bit OS with a 64bit processor, and I've only installed 64bit version of stuff until now.
UPDATE: well, the cx_freeze installs, but I still can't manage to get an executable file. I think maybe this module/package is not compatible with python 3.5 - I will later try it on 3.4 and see if it works.
UPDATE_2.0: Works great on Python 3.4 - so I guess there's some problem with the package compatibility with Python 3.5

Categories

Resources