All Questions
Tagged with python-2.7 ubuntu
538
questions
0
votes
0
answers
34
views
How to install pip for python 2.7 on ubuntu 23.10
There are some links such as here for instructions on how to install pip2 on ubuntu with python 2.7, however when I run
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo ...
0
votes
0
answers
23
views
how to get ripem160 from hashlib to work in python 2
I am modifying a script written in python2 that uses hashlib, the actual call is:
ripemd160 = hashlib.new('ripemd160')
I am doing this in a venv python2.
I checked the /usr/lib/python2.7/hashlib.py ...
1
vote
2
answers
308
views
How to install Python2.7 on Cygwin?
4 years ago, I using apt-cyg can install Python2.7.x directly, successfully, without any error
But now, I can't find Python2 in cygwin list
so I try to through complipe source on cygwin, and get ...
0
votes
0
answers
401
views
Installing Cuckoo on Ubuntu 22.04
I decided to try to install Cuckoo on Ubuntu 22.04,recently installed Anaconda, to run Python2's scripts, because are fundamental to make it run.
And I'm stuck on this error:
`error: subprocess-exited-...
1
vote
1
answer
75
views
How can I resolve the '_ctypes' error when importing 'qi' module with Python-SDK for Nao on Linux?
Issues with installing Python-SDK for Nao
I have installed python-sdk for the Nao robot in my VM which runs in Linux 5.10.0-20-arm64 #1 SMP Debian 5.10.158-2 (2022-12-13) aarch64 GNU/Linux. I have ...
1
vote
0
answers
84
views
Conda not able to call its python version
I am getting an issue in the conda environment, the conda environment is not able to call its python version. I installed a different version of python in my conda environment but it is still calling ...
0
votes
1
answer
355
views
How to access localhost or 127.0.0.1 on a Windows machine from Ubuntu Production Server?
I need to fetch some data from a biometric device connected to the customer's PC and return it back to my production server. I'm using a Mantra MFS100 Biometric Device to capture biometric data of the ...
-3
votes
1
answer
413
views
How do I uninstall python 2.7.10 on Ubuntu 20.04 [closed]
I installed python 2.7.10 by following this tutorial:
https://letmespeakweb.wordpress.com/2016/08/15/how-to-install-python-2-7-10-on-ubuntu-16-04/
And now I don't know how to uninstall. I tried purge ...
1
vote
0
answers
441
views
Python Package Error After Upgrading Ubuntu From 18.04 To 20.04
I have upgraded my Ubuntu Server OS to 20.04 from 18.04 with this command "sudo do-release-upgrade".
While upgrading, there was some problems with downloading packages for network problem.
...
1
vote
0
answers
88
views
Installing lcm-python on ubuntu
So I need to install the python version of lcm, which is downloaded from here , but every time, I end up with this error
photo of my terminal.1st attempt is with python 2.7.17 and the second is with ...
0
votes
1
answer
243
views
Why is the output different with Python 2.7 than Python 3.10? [duplicate]
$ /usr/bin/python2 simple.py 200 > out2.pbm
$ /opt/src/Python-3.10.1/bin/python3 simple.py 200 > out3.pbm
$ cmp out2.pbm out3.pbm
out2.pbm out3.pbm differ: byte 304, line 3
The python2 output ...
0
votes
1
answer
429
views
ModuleNotFoundError even though __init.py__ exists
I have a discord bot written with python. But the catch is, it only works when deployed on heroku but doesnot run locally at all.
This is the folder structure
- feed
- __init__.py
- token.py
- ...
0
votes
2
answers
49
views
How can I make this tiny Python 2.7 complex number code snippet work the same with Python 3?
check.py —
import sys
def main():
h = 5
for y in range(h):
fy = 2j * y / h - 1j
print ( fy )
main()
expected result —
$ python --version
Python 2.7.18
$ ...
0
votes
1
answer
49
views
Python is trying to import modules from a different version of Python. Rearranging Python versions in PYTHONPATH fixes it. How to make this permanent?
I have both Python 2.7 and Python 3.5. Below I have run Python 3.5, but it is looking for modules in Python 2.7. Pandas is installed for both Python versions. In order to fix this, I can rearrange the ...
4
votes
2
answers
10k
views
How to install Python2.7.5 in Ubuntu docker image?
I have specific requirement to install Python 2.7.5 in Ubuntu, I could install 2.7.18 without any issues
Below is my dockerfile
ARG UBUNTU_VERSION=18.04
FROM ubuntu:$UBUNTU_VERSION
RUN apt-get update ...