centos

Can I install node.js 18 on Centos 7 and do I need python 3 install too?

Can I install node.js 18 on Centos 7 and do I need python 3 install too? Question: I’m not sure if node.js 18 supports centos 7 and is it a requirement to install python 3 for node.js 18? Asked By: Zachary Armstrong || Source Answers: Step 1 – curl –silent –location https://rpm.nodesource.com/setup_18.x | sudo bash …

Total answers: 3

WARNING: The script pip3.8 is installed in '/usr/local/bin' which is not on PATH

WARNING: The script pip3.8 is installed in '/usr/local/bin' which is not on PATH Question: When running pip3.8 i get the following warning appearing in my terminal WARNING: The script pip3.8 is installed in ‘/usr/local/bin’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use –no-warn-script-location. …

Total answers: 2

Install pip for specific python version

Install pip for specific python version Question: We have installed python 3.9 from external Link, my OS has in built python 3.6 and python3-pip for 3.6 version. If I install pip packages it will install for python 3.6 and it is not compatible for python 3.9. How to install pip3.9 ? so that i will …

Total answers: 3

CQLSH ImportError: cannot import name ensure_str

CQLSH ImportError: cannot import name ensure_str Question: I have installed Cassandra database on my CentOs system. after that, I tried to install the Cqlsh package using this command sudo yum install cqlsh and it has been installed successfully. but when I tried to run cqlsh from the terminal, the following error appears: ImportError: cannot import …

Total answers: 5

Can I use python3.4 modules in python3.6?

Can I use python3.4 modules in python3.6? Question: Is it possible to run python3.4 modules in python3.6? I’m not looking for installing the python3.6 equivalent package. Example: yum install python34-apsw and then in python3.6 to be able to do import apsw? Asked By: Radu Niţescu || Source Answers: If modules that are used in your …

Total answers: 1

Python executable running on different Linux versions

Python executable running on different Linux versions Question: I need to write a program that will be running in the end on CentOS (Version 6.3 – its a security appliance but I have root access) I installed a development environment in Ubuntu and used pyinstaller to create a single executable. In PyCharm I can select …

Total answers: 1

How to set Python3.5.2 as default Python version on CentOS?

How to set Python3.5.2 as default Python version on CentOS? Question: Is there a way to set the Python 3.5.2 as the default Python version on CentOS 7? currently, I have Python 2.7 installed as default and Python 3.5.2 installed separately. I used the following commands mv /usr/bin/python /usr/bin/python-old sudo ln -fs /usr/bin/python3 /usr/bin/python but …

Total answers: 6

How to display list of running processes Python?

How to display list of running processes Python? Question: How to display list of running processes Python with full name and active status? I tried this command: pgrep -lf python Asked By: MisterPi || Source Answers: ps -aux will give all process grep python ps -aux | grep python Answered By: harshil9968 Try this command: …

Total answers: 5

pip install – locale.Error: unsupported locale setting

pip install – locale.Error: unsupported locale setting Question: Full stacktrace: ➜ ~ pip install virtualenv Traceback (most recent call last): File “/usr/bin/pip”, line 11, in <module> sys.exit(main()) File “/usr/lib/python3.4/site-packages/pip/__init__.py”, line 215, in main locale.setlocale(locale.LC_ALL, ”) File “/usr/lib64/python3.4/locale.py”, line 592, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting On the same server, I successfully ran …

Total answers: 10

Python pip install error [SSL: CERTIFICATE_VERIFY_FAILED]

Python pip install error [SSL: CERTIFICATE_VERIFY_FAILED] Question: I have been trying to figure this out for a while now and for some reason I get stuck with an ssl issue and have no idea what is going on. Problem: I have installed python2.7 and easy_install2.7, but when trying to install pip with easy_install2.7 I get …

Total answers: 11