pg_config executable not found

I am having trouble installing psycopg2. I get the following error when I try to pip install psycopg2: But the problem is pg_config is actually in my PATH; it runs without any problem: I tried adding the pg_config path to the setup.cfg file and building it using the source files I downloaded from their website (http://initd.org/psycopg/) and I get the following … Read more

AttributeError: Module Pip has no attribute ‘main’

I am trying to build the python api for an open source project called Zulip and I keep running into the same issue as indicated by the screenshot below. I am running python3 and my pip version is 10.0.0. The file in question is setup.py and the code that is messing up is when the pip.main() attribute is accessed … Read more

Checking whether pip is installed?

I am using Python 2.7.12 and I want to check whether the pip is installed or not. For this, in command line of Python application I wrote pip list and pressed enter. However, I get an error like: So, how can I solve this issue and get the list of modules as an output? Thanks

How are Pipfile and Pipfile.lock used?

It seems that Pipfile/Pipfile.lock are intended to be replacements for requirements.txt, in the context of Python packaging. There isn’t much documentation out there on how these actually work, however. I found an evolving description of pipfile on the PyPi section of the Python website here but it’s pretty messy and doesn’t explain the semantics of the different … Read more

How to install multiple python packages at once using pip

For installing multiple packages on the command line, just pass them as a space-delimited list, e.g.: For installing from a text file, then, from pip install –help: -r FILENAME, –requirement=FILENAME Install all the packages listed in the given requirements file. This option can be used multiple times. Take a look at the pip documentation regarding requirements files for … Read more

Using Pip to install packages to Anaconda Environment

For others who run into this situation, I found this to be the most straightforward solution: Run conda create -n venv_name and conda activate venv_name, where venv_name is the name of your virtual environment. Run conda install pip. This will install pip to your venv directory. Find your anaconda directory, and find the actual venv folder. It should be somewhere like /anaconda/envs/venv_name/. … Read more

‘pip3’ is not recognized as an internal or external command, operable program or batch file

On Windows, it’s a good idea to stick to launching pip via the py.exe common launcher, so you can provide flags to specify which version of Python to use without needing to deal with a complicated PATH. To use it for Python 3, just replace: with: It’s a little bit longer to type, but it avoids a lot of hassles with PATH management, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)