What's the proper way to install pip, virtualenv, and distribute for Python?

Short Question What is the proper way to install pip, virtualenv, and distribute? Background In my answer to SO question 4314376, I recommended using ez_setup so that you could then install pip...

How to get setuptools and easy_install?

I downloaded the ez_setup code from here: http://peak.telecommunity.com/dist/ez_setup.py and ran it, but i don't think setuptools was properly installed. When i try to open an egg using...

How to extract dependencies information from a setup.py

I have a python project, let's call it foobar, there is a setup.py script in project root directory like all Python projects. For example foobar setup.py setup.py file content: from ez_setup...

How to use setuptools to install in a custom directory?

I have a Python package that I need to install in the /usr/lib/python2.7/dist-packages or any other specific directory for that matter. Whenever I run the setup.py script it gives the following...

Build a python package with setup.py in CMake

EDIT: The question is a bit too long. Here is my real question: How can I build and install a python package with setuptools (setup.py) inside CMake? The detail of my code is shown below (but with...

How to create a Pure-Python wheel

From the following setup.py file, I am trying to create a pure-python wheel from a project that should contain only python 2.7 code. from setuptools import setup setup( name='foo', ...

Why is "pip install tornado" not installing the tornado module?

I am trying to install tornado onto my virtual environment, so I can get Jupyter to work. I tried pip install tornado and it seems like it runs but it only installs other modules. I even tried to...

fail to visualize a network in python - issue with pygraphviz?

As I use some code to visualize a network, I encountered an error Traceback (most recent call last): File "networkplot.py", line 21, in <module> pos = graphviz_layout(G, prog='neato') File...

How to install pymssql on MacOS Sierra

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-J1I0ox/pymssql/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',...

Install requirements.txt with pip

I am trying to install remote environment like on remote server using requirements.txt. So first I went to Server went to virtualenv by source bin/activate and typed: pip freeze > requirements.txt...

Failed installing pycrypto with pip

I encountered a problem when I try to download a certain package: C:\Python27\Scripts>pip install pycrypto Collecting pycrypto Using cached...

Installing Twisted for Python using pip: error: Microsoft Visual Studio failed with exit status 2

When I try to install the python package Twisted on my windows 10 machine running python3.7, I'm unable to build a Wheel from the .tarz file and I eventually get the following output: C:\Program...

PyTorch Cuda with anaconda not available

I'm using anaconda to regulate my environment, for a project i have to use my GPU for network training. I use pytorch for my project and i'm trying to get CUDA working. I installed cudatoolkit,...

Error relocating - symbol not found - building docker-fpm-alpine image

Trying to create an image (from a working one) I got this error, been googling the solution but couldn't find a proper one, I asume something's wrong with libraries. Don't fully understand what...

Install mysqlclient via pipenv throw errors

I'm using django and mysql. To communicate django with mysql, have to install mysqlclient. Also python version is 3.7.2 pipenv install mysqlclient it throws errors. Installing mysqlclient... ✔...

Django 'pip install django-heroku'(psycopg2) error is blocking deployment to Heroku

I am setting up a new Django project to deploy on Heroku, however when I am following the Django Heroku deployment guide I come across an error during 'pip install django-heroku'. I am running on:...

How to fix ImportError: No module named 'telebot'

I'm configuring a bot to send alerts from Zabbix, so I installed Python and the modules: sudo apt install python python-pip python-setuptools After that, I installed the bot API to use on...

pip install error: package directory does not exist

I've looked at similar questions, but with no luck of answer, I have the following structure ├── README.rst ├── setup.py └── my_package ├── conf.py ├──...

Problems with installing plotly on Windows 10 with Python 3.8.5

I am having problems installing plotly on Windows 10 with Python 3.8.5. The command line prompt is in admin mode. The package manager pip3 here seems to be installing the package retrying-1.3.3...

macOS Big Sur; Command Line Tools and Python 3.8.2

I am experiencing difficulty with installing Python correctly on my Mac (Fresh Install, I wiped my PC clean). I installed firstly Home Brew Xcode through App Store Command line tools using...

tables package for Python 3.9.1?

This is my first question on here. Thank you very much in advance for your support. I'm using Python 3.9.1 on a 64-bit Windows 10 machine and I've been trying to install the tables package by pip...

unable to install matplotlib with python3 on m1 mac using pip3

I'm unable to install matplotlib through pip on my M1 Mac. I have Python 3.9.1 installed through Homebrew. I've tried the solution here:...

Docstrings are not included in Read the Docs Sphinx build

I built a Sphinx documentation and the build works well locally. My docstrings appear as shown below. When moving to readthedoc.io, I added a specific requirement file under docs/requirement.txt...

No module named 'pkg_resources' when certbot -v

I am trying to work with certbot and when I put certbot -v (Or any certbot command) I get this: Traceback (most recent call last): File "/usr/local/bin/certbot", line 6, in <module> from...

Troubleshooting pycocotools installation

I'm trying to use object detection models from Tensorflow and need to get pycocotools installed. I'm doing this from a python (3) virtual environment on a Windows 10 machine. There seems to be...

need help on installing eth-brownie on windows 10

While installing eth-brownie via "pip install eth-brownie" on vscode terminal, I am getting the error below: I already chose the default terminal CMD I already tried installing the required VS...

Issue installing python 3.8 using pyenv

I tried installing python using the command pyenv install 3.8.11 Please let me know if you need more info. Thank you for looking. output: BUILD FAILED (Ubuntu 20.04 using python-build...

Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)

version pip 21.2.4 python 3.6 The command: pip install -r requirments.txt The content of my requirements.txt: mongoengine==0.19.1 numpy==1.16.2 pylint pandas==1.1.5 fawkes The command is...

python 3.10.0 Building wheel for mysqlclient (setup.py) ... error

I installed python latest version python3.10.0 and django version 3.2.8. I tried to install mysqlclient by using pip install mysqlclientcommand in the command prompt but it shows an error like...

Cannot install Matplotlib on Python 3.10

python3.10 -m pip install --user matplotlib I keep getting the following error when I run the above to install Matplotlib. I was initially getting a C++ error and I installed Visual Studio. Time...