In my project I need to use django-simple-history but when I run the command: pip install django-simple-history I got the ERROR:
Could not build wheels for django-simple-history, which is required to install pyproject.toml-based projects
Any solutions please, thank you in advance.
Check if you have required Python and Django versions installed ( https://django-simple-history.readthedocs.io/en/latest/ ).
Try to install earlier version of django-simple-history, for Windows:
py -m pip install django-simple-history=="3.0.0"
Let's see if these steps could solve your problem.
Download the files from PyPI
Install the files using pip
python -m pip install ./path/to/file
Last but not least, If you think that is a bug, please consider to submit the issue via Github
Make sure you disable the path length limit in Windows:
Related
Trying to install coremltools. I installed using pip but that is not the most recent version and I have run into a bug that was solved 4 days so I must build from source. I'm on a Mac virtual desktop(windows user) and I tried cmake, but since there are multiple pythons it keeps trying to install to python 3.7 when I need it to install for python 2.7.10. The github suggest doing this:
cmake . -DPYTHON=$(which python) -DPYTHON_CONFIG=$(which python-config)
.. however as someone who doesn't use cmake for package installs I'm unsure of the correct syntax could someone give me an example statement to go off of, I would really appreciate it. Thanks
You can install it without building it manually:
pip install https://github.com/apple/coremltools/archive/master.zip
You can replace "master" with any branch or tag names.
EDIT: To update an existing install add the -U flag. Or uninstall previous installations.
I have a package that I am trying to install via pip install allen-bradley-toolkit. The package is failing with the following reason.
The problem seems to related to the fact that pip is trying to install 1.0a1.post0 instead of the latest release version 2.0.0. Does anyone have any ideas on what to do about this. Perhaps there is something wrong in my deployment script. You can view the Github Library here to see how I am deploying to PyPi.
There is an issue opened on the GitHub Tracker #2 that you can also reference for more info.
NOTE: The package seems to install fine on my win10 machine. But I am unable to get it to install on a win7 VM.
Ive also tried installing with the following commands:
pip install --no-cache-dir allen-bradley-toolkit
pip install allen-bradley-toolkit==2.0.0 -> this ones throws a 'doesnt exist error`
At https://pypi.python.org/pypi/allen-bradley-toolkit/2.0.0 I see that the wheel is only available for Python 3. You're trying to install it with Python 2.7.
To publish a universal wheel (suitable for both Py2 and Py3) you need to set
[bdist_wheel]
universal = 1
in setup.cfg or run
python setup.py bdist_wheel --universal
The 2nd line of the output has a clue to the problem - "Using cached ..."
You can skip the cache using the --skip-cache --no-cache-dir option to pip install or request an upgrade using the -U option
edit: updated comment with the correct option (although, seems like that wasn't the problem in this specific case).
I have found the old answer to this question, but the instructions provided in the mentioned post are no longer working... Essentially the URL where NumPy for IronPython was stored is broken.
How to install NumPy for IronPython in 2015/2016
You can download the required wheel file from https://pypi.org/project/numpy.
Update the pip to the latest version based on your OS.
If you are unable to use pip, please add pip to your PATH by editing
environment variables.
pip install --upgrade pip
After upgrading pip, you can use pip to install the local *.whl file you downloaded
pip install C:\path\to\whl_file.whl
For more customized install, you can look here: https://pip.pypa.io/en/stable/
Paste this in to your terminal
pip install numpy
If it say: pip is not recognized as an internal or external command, then try reinstalling Python and remember to add it to PATH (Easiest step. There is more ways to fix this but
this is the easiest one).
Then, it will work perfectly :)
I've installed reportlab, via
pip install reportlab
(also tried via
easy_install reportlab
)
..but I get the above error. There are other RL imports before that - it's the .lib that it's objecting to. I've had RL working great in the past, but IT reimaged my computer, and I'm trying to rebuild it. The script works fine, but there's something funky with the RL install, I think.
Reportlab: 3.3.0
Most of the times errors like this are caused by an broken package, either in the package it self or in one of it's dependencies.
The best way to resolve such a issue is to force-reinstall the package, it will reinstall the package and its dependencies potentially repairing the package.
To force-reinstall reportlab use:
pip install --upgrade --force-reinstall reportlab
If the above solution doesn't work for you then make sure you dont have any other module named reportlab.py in your current directory.
Another alternative you can do this in windows commandline
pip uninstall reportlab
then create an account for reportlab here is the link https://www.reportlab.com/accounts/register/
then copy paste this in the windows commandline
pip install -ihttps://www.reportlab.com/pypi -U reportlab
when it prompts you for a user and password use the one you just registered
Download the latest version of python, ensure it's a 64-bit python package, and change the python interpreter in VSC.
View - Command Pallette - Type "Select Interpreter" - Click it and choose for example "Python 3.8.0 64-bit"
It's also a good idea to install the latest version:
pip install reportlab==3.6.11
Check if you have 2 versions of Python - That is 2.7 and 3 - in which case you would need to run pip3 instead of pip to run Python3 code
The best way to install ReportLab is use their .exe installer. They have installers for 32bit and 64bit.
https://pypi.org/project/reportlab/2.7/
may be you are missing the module try below command for the same:
pip install --upgrade --force-reinstall reportlab
sorry for asking a probalby stupid question, however, I am completely new to setting up/installing python packages, i.e. I have never done it.
So far I installed anaconda3 and worked with the pre installed packages. Now I need the google api pyhon client.
I do not even know whether pip is installed in the anaconda package but I assume it.
What have I tried so far:
In Windows cmd:
1. pip install --upgrade google-api-python-client
2. pip install -- proxy="XXX.XXX.XX.X:XX" -- upgrade google-api-python-client
3. export https_proxy="...."
pip install --upgrade google-api-python-client
I get the following errors:
cannot fetch index base url https://pypi.python.org/simple
unknown command
unknown command
In addition I tried to download the google_api_python_client and unzipped it.
However, I do not know how to proceed here.
BTW: Here in my company we are still on XP
Any help would be highly appreciated!
THANK YOU
Would like to add to the answer by #alok-nayak that you should use the following:
python setup.py install
Leads to:
Installed ~/anaconda/lib/python2.7/site-packages/google_api_python_client-1.4.2-py2.7.egg
After unzipping google_api_python_client. You should run the setup.py file
python setup.py
Also you can edit ".condarc" file in your home folder, as explained here http://conda.pydata.org/docs/config.html . enter your proxy details there