Skip to content
Advertisement

Tag: python

how to read csv files with mbcs codec in Python on Linux?

I’m trying to read CSV files with Western Europe (windows) encoding This code works well on Windows but not on Linux 18.04. (Error: unknown encoding: mbcs) Indeed, in the codecs python documentation, we have the information: is there another way/name to decode my files in python on Linux? (I have thousand of files so I can’t save as on Excel)

Upgrading `pip` removes other python’s pips

On a CentOS 7 system, I have multiple versions of Python installed, each with their own version of pip: When I ask pip3.8 to upgrade itself, it removes the installed pip3.7: Why is it doing this, and how can I prevent it? UPDATES: The lib paths are different for the two installations, as shown here: It is not bidirectional –

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-xaum7z8f/supervisor/

I’m setting up an existing project and when I am running pip install -r requirements.txt After every dependency is installed it gives this error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-d0j9czw9/supervisor/ This is the list of complete installation I have seen similar questions but their solutions don’t work on mine, so far I have tried these

ROS rqt_graph does not launch anymore (ImportError DEFAULT_MASTER_PORT)

Recently I installed the offline simulator from Universal Robots, and the install.sh turned out to remove my entire ROS install. Fine. I re-installed it following the official guide, and now rqt_graph does not work: (roscore is running in another terminal) I tried sudo apt install ros-melodic-rqt and sudo apt-get install python-rosgraph, but the error persists. I dug and found out

gunicorn command not found, but it’s in my requirements.txt

I am deploying a Django app on Heroku , which is successfully deploying, but I am getting the following error when I want to view the app on the provided http link. gunicorn is in my requirements.txt file. Here is my requirements.txt file: I also have Pipfile and Pipfile.lock files. Answer I also have Pipfile and Pipfile.lock files That’s your

Advertisement