fastapi installation, Cargo installation error - installation

I used pip install fastapi[all]
I added cargo to path,

Your problem comes from orjson, it is a Rust based library and seems like you have done something wrong with your Package manager (Cargo).
Consider Containerizing your working environment, or you can install fastapi without [all] option. By doing that, pip will not install orjson.

Related

ERROR: Could not build wheels for prophet, which is required to install pyproject.toml-based projects

I am trying to install prophet using
pip install prophet
installation goes well at first, but then fails with the following error
ERROR: Failed building wheel for prophet Failed to build prophet ERROR: Could not build wheels for prophet, which is required to install pyproject.toml-based projects
I use the following technologies:
Python 3.11.0
pip 22.3
windows 11
I suspect that the problem is somehow related to pyproject.toml but I don’t know what it is and how to install it, please tell me how to fix the error and install the prophet correctly
I tried to google a ready solution or advice, but I only found similar errors when installing other libraries using pip
in the answers, people recommend installing another library, but in different topics it is different
I want to understand what I need to install if an error occurs when installing the prophet
This error message suggests that there was a problem building the wheel for the Prophet package.
A wheel is a built package that contains the necessary files for a Python package, and it allows for faster installation. Building a wheel for a package involves compiling the package's code, which can sometimes fail due to various reasons.
Here are a few things you can try to solve the issue:
Try installing the package again with the --no-binary :all: option.
This will force pip to build the package from the source, which may
resolve any issues with the pre-built wheel. The command would look
like this: pip install prophet --no-binary :all:
Make sure your system has all the necessary dependencies and build
tools installed. Prophet requires a C++ compiler and Python
development headers. Try using a virtual environment to install the
package.
Make sure you have the latest version of pip and python installed.
Check if there is any issue related to it on GitHub
It could be helpful to check the Prophet's GitHub issues or documentation for any known compatibility issues or installation troubleshooting tips.

pip install psd-tools3 => FileNotFoundError: [Errno 2] No such file or directory

I was trying to install Ursina but I was having trouble getting all the required packages I needed to run my code properly. Come to find out, there's a package that refuses to install called 'psd-tools3' that won't install, no matter what I do.
I've been using cmd commands like 'pip install psd-tools3' and 'pip3 install psd-tools3' but no other commands work (i.e. 'sudo pip install psd-tools3' doesn't work because my PC doesn't know what 'sudo' means and doesn't run). I've tried installing required packages for this package, but nothing works. It just keeps giving me this error:
enter image description here
I would really appreciate the help with this problem. All I can really assume is that the Python file '_version' hasn't been created and that's what's throwing the whole program off. If there is a way to add this manually and then install it, I would appreciate steps to do that as well.
I was running this on a Lenovo Thinkpad (Windows 10) on Python 3.10 (I also have Python 3.8.3 but that was installed with the 3.10) and I made sure all packages and pip are up-to-date. Still having this problem and I don't know why.
Seems to me like the issue is on the side of the maintainers of psd-tools3.
For example, looking at the content of the latest source distribution on PyPI, we can see that it does not contain any _version.py file.
This needs to be solved by the project's maintainers, but they do not have a ticket tracker. On the other hand there seems to be an "Author" email address on the project's PyPI page as well as in the project's setup.py script.
A solution might be to clone the project's source code repository (with git), and try to install from the local clone.
Just simply try
pip install psd-tools3==1.9.0
Or
pip install psd-tools3==1.8.2
This should work on your pc as well. I was having same issue, and then I tried this It worked for me

How to install pyez from local directory

I have to install pyez using pip. This at least is stated as requirement to use the role Juniper.junos to run ansible commands against Juniper routers. I'm using cygwin on a windows laptop without any adminrights in a corporate network. The problem is, I cannot use the corporate proxy because of that proprietary Microsoft NTLM protocol so a simple "pip install junos-eznc" is not possible. But what I could do is download the software, tarball or whatever and run pip against that downloaded stuff. I tried several things and failed miserably and google doesn't return anything useful. Can anyone help? What am I supposed to do to get that installed successfully? Many thanks in advance.
Youcan download required package and install it like this
pip install <file_name>
I solved it.
First issue: Proxy
px.exe on https://github.com/genotrance/px/releases.
Second issue: missing libs:
I had to install several libs and make on cygwin in order to get junos-eznc installed:
libxml2-devel
libxslt-devel
libffi-devel
libssl-devel
make
Third issue: cryptography
Don't use latest version of cryptography because it'll need rust which is pita on cygwin
pip install cryptography==3.2
... and then ...
pip install junos-eznc
After that, installation of ...
ansible-galaxy install Juniper.junos
... was quite smooth

RASA pip installation fail: Multiple requirements incompatible

I am trying to install RASA using instructions here
I created a virtual environment and did a pip install rasa. But below is the error message with multiple dependencies incompatible. Do I install all the specified versions from the error message individually?
I found multiple people having installation issues and tried my best to find a solution in the forum, but couldn't.
error message- list of dependencies
It looks like you are trying to install Rasa1.x in an environment where you had previously installed rasa-nlu and rasa-core separately (pre Rasa 1.x). These are old versions that you can't mix with post-1.x Rasa.
I would recommend creating a new virtual environment, making sure it is active, checking that no rasa-nlu or rasa-core is installed, then running pip install -U rasa or pip install -U rasa==<rasa version that you want> if you want a specific version.

Python 3.5.1 pip install 'ImportError'

While using pip install I am getting the following error:
Error while finding spec for 'pip__main__' <: No module named 'urllib.request'; 'urllib' is not a package>; 'pip' is a package and cannot be directly executed
Any advice on this one?
I thought maybe it was related to the requests module itself but I tried to download other modules and had the same problem.
I've just upgraded from Python 3.3 to v3.5.1 on Windows and hit the same error message. I understand it's not the same as your problem.
It seems that the instructions from the docs to use:
python -m pip install SomePackage
are wrong, at least for Windows because I get the error message quoted by the OP.
I forgot to add the Scripts directory to my path, the same as previous releases. When I add it the problem is fixed. My path now has (for a default install of Python 3.5):
PATH=<blah>;%USERPROFILE%\AppData\Local\Programs\Python\Python35;%USERPROFILE%\AppData\Local\Programs\Python\Python35\Scripts
The pip executable is located in Scripts, so pip commands can now be executed directly, the same as always:
pip install urllib

Resources