I use Linux distros and face the problem since the new installation of Python 3.6. I tried a couple of solution and finally solved the problem. The steps I followed are as below.
On Debian like distros
sudo apt-get install build-essential checkinstall libreadline-gplv2-dev ibncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
Change the directory to the Python3.6 location
cd /path/to/Python3.6/Module/
In the module directory, open the Setup
file with your preferred text editor
vi Setup
Search for SSL
and uncomment the related lines.
ssl _ssl.c \ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ -L$(SSL)/lib -lssl -lcrypto
Save the file and on the root folder of your Python package, run the following command.
make sudo make install
And finally, run the pip3
to install your required module(s).
Related Posts:
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How do I install a Python package with a .whl file?
- pip/python: normal site-packages is not writeable
- How do I install a Python package with a .whl file?
- python3 command not found after installing python with pyenv
- How to uninstall mini conda? python
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- Visual C++ for python failed with exit status 2 when installing divisi2
- PIP (Python) : ImportError: cannot import name _remove_dead_weakref
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to update/upgrade a package using pip?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to update/upgrade a package using pip?
- bash: pip: command not found
- How to uninstall a package installed with pip install –user
- How to uninstall pip on OSX?
- How can I install packages using pip according to the requirements.txt file from a local directory?
- ImportError: No module named pip
- ImportError: No module named pip
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How do I install pip on macOS or OS X?
- ImportError: No module named tensorflow
- Where is BeautifulSoup4 hiding?
- Where does pip install its packages?
- How to install python3 version of package via pip on Ubuntu?
- Could not install packages due to an EnvironmentError:
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Could not find a version that satisfies the requirement tensorflow
- How to install pytorch in Anaconda with conda or pip?
- Configuring so that pip install can work from github
- Is #include
bad practice? - Conda uninstall one package and one package only
- pip or pip3 to install packages for Python 3?
- Bash: Python3: command not found (Windows, discord.py)
- Error after upgrading pip: cannot import name ‘main’
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- Permission denied error by installing matplotlib
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- filename.whl is not a supported wheel on this platform
- E: unable to locate package pip
- What is the difference between pip and conda?
- bash: pip: command not found
- How to know the version of pip itself
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- ModuleNotFoundError: No module named ‘matplotlib’
- How to install PIP on Python 3.6?
- How can I install Python’s pip3 on my Mac?
- setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- No module named pkg_resources
- What is the purpose of “pip install –user …”?
- How to upgrade all Python packages with pip
- How do I remove all packages installed by PIP?
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- How to install multiple python packages at once using pip
- Checking whether pip is installed?
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- ‘Pip’ is Not Recognized as an Internal or External Command windows 10 CMD
- can’t remove python pip
- Why does “pip install” inside Python raise a SyntaxError?
- How do I install a pip package globally instead of locally?
- python mpl_toolkits installation issue
- How to install requests module in Python 3.4, instead of 2.7
- How can I add the sqlite3 module to Python?
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- pip: no module named _internal
- Zsh: Conda/Pip installs command not found
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- Find which version of package is installed with pip
- How to run Pip commands from CMD
- How to install PyGame on Python 3.4?
- Django Rest Framework — no module named rest_framework
- python NameError: name ‘file’ is not defined
- How to install Python MySQLdb module using pip?
- boto3 python 2.7 ImportError: No module named boto3 USER_BASE USER_SITE site packages doesn’t exist
- ImportError: No module named Crypto.Cipher
- Python 3.6 No module named pip
- How to Install pip for python 3.7 on Ubuntu 18?
- Python can’t find module NLTK
- How to change pip installation path
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- Why am I getting ImportError: No module named pip ‘ right after installing pip?
- ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- How to install pip for Python 3 on Mac OS X?
- How to install Openpyxl with pip
- Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later
- How to resolve “ImportError: DLL load failed:” on Python?
- Dealing with multiple Python versions and PIP?
- Install pip for python 3.5
- How to install PyQt4 on Windows using pip?
- How do I install pip on macOS or OS X?
- How to install PyQt4 on Windows using pip?
- Pip: could not find a version. No matching distribution found
- TensorfloTensorflow installation error: not a supported wheel on this platformw installation error: not a supported wheel on this platform
- File “/usr/bin/pip”, line 9, in
from pip import main ImportError: cannot import name main - How do I list the files associated with a Python package installed using pip or easy_install?