Getting an error saying “Could not build wheels for numpy which use PEP 517 and cannot be installed directly” while installing numpy

I was facing the same error on my MacBook Air(macOS BigSur) Laptop while installing the Numpy package via integrated terminal of VS Code. And I found the solution: So previously I was using older version of pip i.e. 19.2.3. But when I upgraded it to the latest version using command pip install –upgrade pip and … Read more

How do I force `setup.py test` to install dependencies into my `virtualenv`?

By design, you can’t make the tests_requires or the setup_requires entries go into the virtual environment. The idea is to separate what is required for performing tests/setup and what is required to actually use the package being installed. For example, I may require that the “coverage” module be needed for running tests on my package, … Read more

pip -e: No magic underscore to dash replacement

From what I can see from this question and this response on the Python mailing list it looks like this is due to numerous naming conventions throughout the Python packaging system, and the compatibility between them. Pythons setuptools runs safe_name which: Convert an arbitrary string to a standard distribution name Any runs of non-alphanumeric/. characters … Read more

virtualenv does not include pip

Try removing or renaming the .pydistutils.cfg file in your home directory, e.g. by renaming with mv ~/.pydistutils.cfg ~/oldpydistutils.cfg I’m putting a detailed answer here to help others, but the original credit goes to this answer. If you know what specifically in .pydistutils.cfg was causing the problem, let me know! I was having the same issue: … Read more

List all Pipenv environments

Why not simply looking for existing virtual environments? To check where they are stored you can activate one virtual env and get its path: $pipenv shell $pipenv –venv > /path/to/existing_venvs/current_venv ls /path/to/existing_venvs/ > cython-pr4GGvfQ/ openCV-f4drK-E5/ I don’t know if pipenv can store venvs in other places, but at least for me this is enough to … Read more

How to import all the environment variables in tox

You can use passenv. If you pass the catch all wildcard * you have access to all environment variables from the parent environment: passenv=SPACE-SEPARATED-GLOBNAMES New in version 2.0. A list of wildcard environment variable names which shall be copied from the tox invocation environment to the test environment when executing test commands. If a specified … Read more

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