HTML5LIB installation problems - python-2.7

I have a Win 7 machine with Python 2.7 instlled and 3.5
2.7 is in C:\Python27
3.5 is in C:\Users\xxx\AppData\Local\Programs\Python\Python35-32
I want to use html5lib import with my Python 2.7 installation
I can see its installed in the 3.5 directory
How do I installed it so its available for the 2.7 installation?
My path is
C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\Scripts\;
C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\;
C:\Program Files (x86)\Nmap;
C:\Users\xxx\AppData\Roaming\npm
Thanks for reading

In the end I ran the pop command using the full path for the directory when python 2.7 was installed.
Job jobbed!!!

Related

gsutil says it cannot find python

I installed the cloud SDK. The path variable is updated to the location of the sdk
I have python 2.7 and python 3.8 installed on the machine. Python 2.7 is installed at
C;\Python27\python.exe
Now when I run the gsutil I get an error
C:\Windows\system32>gsutil
ERROR: (gsutil) "C:\Python27\python.exe": command not found

How to install h5py for version 1.10

I am using tensorflow in a python module, which is called by a c++ file. I moved to a new computer, where I installed ros again. So it works on one computer, but not on the other. There I got the following error:
UserWarning: h5py is running against HDF5 1.10.0 when it was built against 1.10.4, this may cause problems '{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)
then I did:
pip2.7 uninstall h5py
pip2.7 install h5py==1.10.4
but then I get the following error:
No handlers could be found for logger "keyring.backend"
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement h5py==1.10.4 (from versions: 2.2.1, 2.3.0b1, 2.3.0, 2.3.1, 2.4.0b1, 2.4.0, 2.5.0, 2.6.0, 2.7.0rc2, 2.7.0, 2.7.1, 2.8.0rc1, 2.8.0, 2.9.0rc1, 2.9.0, 2.10.0)
ERROR: No matching distribution found for h5py==1.10.4
It seems like there is no 1.10.4 version. What should I do?
I have to use python2.7. Also if I just let the python2.7 script run, it works. Only in conjunction with ros I get this error. But I think I take the python version from the same folder.
Thank you

How to make ipython use Python 2.7 and not Python 3.4 (on Ubuntu)?

I use Ubuntu 14.04. I had installed both Python 2.7 and Python 3.4 versions. I also had ipython installed (which was using Python 2.7 by default). Later I installed ipython3 using
sudo pip3 install ipython
and now I have ipython3. But when I only run ipython, it uses Python 3.4 (as opposed to 2.7). How to make default ipython use Python 2.7?
open .bashrc and add in the bottom
alias ipython='/usr/local/bin/ipython2.7'
before adding check confirm name ipython name of version 2.7 in /usr/local/bin

python version for robot framework selenium2library (Windows10)

Env: Windows 10 Pro
I installed python 2.7.9 and using pip installed robotframework and robotframework-selenium2library and it all worked fine with no errors.
Then I was doing some research and found that unless there is a reason for me to use 2.x versions of Python, I should stick with 3.x versions. Since 3.4 support already exists for selenium2library (read somewhere), so I decided to switch to it.
I uninstalled python 2.7.9 and installed python 3.4 version. When I installed robotframerwork, I am getting the following:
C:\Users\username>pip install robotframework
Downloading/unpacking RobotFramework
Running setup.py (path:C:\Users\username\AppData\Local\Temp\pip_build_username\RobotFramework\setup.py) egg_info for package RobotFramework
no previously-included directories found matching 'src\robot\htmldata\testdata'
Installing collected packages: RobotFramework
Running setup.py install for RobotFramework
File "C:\Python34\Lib\site-packages\robot\running\timeouts\ironpython.py", line 57
raise self._error[0], self._error[1], self._error[2]
^
SyntaxError: invalid syntax
File "C:\Python34\Lib\site-packages\robot\running\timeouts\jython.py", line 56
raise self._error[0], self._error[1], self._error[2]
^
SyntaxError: invalid syntax
no previously-included directories found matching 'src\robot\htmldata\testdata'
replacing interpreter in robot.bat and rebot.bat.
Successfully installed RobotFramework
Cleaning up...
When I did pip list I do see robotframework is installed.
C:\Users\username>pip list
pip (1.5.4)
robotframework (3.0)
setuptools (2.1)
Should I be concerned and stick to Python 2.7.9?
If you are using python 3.x then u can install Selenium2Library using this
pip install https://github.com/HelioGuilherme66/robotframework-selenium2library/archive/v1.8.0a1.zip
With python 2.7.9 you can only install robotframework 2.9
With python 3.X you can install robotframework 3.x+ but as Bryan Oakley said, Selenium2Library is not yet supported ;)

Django Configuration in python 2.7 + installation

I did goggling for at-least 2 hours. I did go through with the documentation of Django and Installation Guide properly but still not succeed to configure Django in my system. I need help
I've windows-07, python 2.7 and want to configure Django 1.4.1 in my system.
What I did till time?
1.installed successfully python 2.7
checked the version by
import sys
print sys.version
2. Now, downloaded and unzipped Django (official version 1.4.1) and put this directory in my C Drive (where folder python 27 resides)
I did run setup.py of Django through cmd but still not succeed.
Can any one give me suggestion what I'm doing wrong here?
Any help is welcome, thanks
for windows-7, official version of django... have you tried this command in cmd !
in directory of django -> python setup.py install