I have python2 and python3 both. When I run
pip --version
pip 21.0.1 from /home/istiak/.local/lib/python3.9/site-packages/pip (python 3.9)
└─$ python2 --version
Python 2.7.18
I have some code of Python2. Which written in weird way ~ I think bash. Here's the git repo. So, I want to run the project by python2 while I run the program by python3 I get the following error
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("""
\033[0)?
I could fix them. While they are written in weird way. So, how can I edit them..? That's why I want to run that program by python2. When I run the program by python2 I get an error ImportError: No module named mechanize
. I have mechanize installed in Python3. When I try to install by pip2. I get following error
Command 'pip2' not found, did you mean: command 'pip' from deb python3-pip command 'nip2' from deb nip2 command 'pip3' from deb python3-pip Try: sudo apt install
I tried to install pip2 also. sudo apt-get install python2
. sudo apt-get install python2-pip
. Although I am not getting pip2. How can I install mechanize in python2?