ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\dineshreddy.d\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\jedi\\third_party\\django-stubs\\django-stubs\\contrib\\contenttypes\\management\\commands\\remove_stale_contenttypes.pyi'
I am unable to install the great expecatation packages in the local . Getting the above error.
I tried with the pip install great_expectations --user command but i am getting the same error
It looks like you are running into an issue with a missing file when trying to install the greatexpectations package. The file that is missing is located in the
C:Usersdineshreddy.dAppDataLocalPackagesPythonSoftwareFoundation contains the file that is missing. The removeestale_contenttypes.pyi file can be found in the Python.3.10qbz5n2kfra8p0LocalCachelocal-packagesPython310site-packagesjedithirdpartydjango-stubsdjango-stubscontribcontenttypesmanagementcommands directory.
You can try reinstalling the jedi package with the pip install jedi command to resolve this issue. You can also try installing the great expectations package in a virtual environment to avoid conflicts with other packages.
Related
I am installing TensorFlow for the python3.8 version using pip. It is downloading most of the packages, but it is not able to install some packages and it is throwing an error like this :
Installing collected packages: tensorflow
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\Users\vssnr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tensorflow\include\external\com_github_grpc_grpc\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h'
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths
Please inform me how to download the TensorFlow without any mistakes like this. Or how to resolve this issue?
Open your Windows PowerShell with Admin access and try inputting this :
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
And after, try to run the pip command to install TensorFlow again and you are able to install it
The many times I am trying to install Django in a virtual environment in Python 3.9. It's showing an OSError and the package is not getting installed.
pip3 install django
Error:
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Sandip\\Documents\\Projects\\Beta-Ecom\\myenv\\Lib\\site-packages\\sqlparse'
Kindly help me resolve this issue.
Relatively new to Python I've created a project using Pipenv that uses the xmltodict module. I've looked at some similar questions but can't find exactly what I need to do.
I've used pipenv to install the xmltodict module but I'm still getting the following error:
Traceback (most recent call last):
File "./storagereport.py", line 12, in <module>
import xmltodict
ImportError: No module named 'xmltodict'
Pipenv shows that the module is installed:
$ pipenv graph
xmltodict==0.12.0
Can anyone help?
You might be running Python from another version , which is usually the default version that is installed. If that's the case, in your virtual environment you will find python.exe and pip.exe you have to run pip from the virtual environment
Try with following command:
sudo pip install xmltodict
or
sudo pip install xmltodict --upgrade
I run into this regularly, I believe because I'm behind a firewall. I download the package that I need to my computer and then I install it. If that doesn't work, I navigate to the download folder where it is and install it from there. You can download this package here:
https://pypi.org/project/xmltodict/
I downloaded the file from here- https://pypi.org/project/xmltodict/#files and after extraction placed the .py file in the directory where I was importing xmltodict. Then it worked fine.
I have been facing environment error while installing python package.
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/gamut/.conda/envs/tf_3/lib/python3.6/site-packages/pexpect-4.6.0.dist-info/METADATA'
I have gone through this directory and found this files:
DESCRIPTION.rst
metadata.json
I am getting same error when installing packages inside or outside the environment.
Any method to solve this?
When I try to install pysparse via pip install pysparse==1.3-dev, the build fails with the error:
pysparse/sparse/src/spmatrixmodule.c:4:22: fatal error: spmatrix.h: No such file or directory
These kinds of errors are usually the result of some missing system dev package, but googling doesn't show anything for "spmatrix". I tried installing the python-sparse package, which does provide this file, but I still get the same error.
How do I fix this?
In this dev-1.3 pakage there were no ".h" and ".c" files if you go through their source.
Use pip install pysparse==1.2-dev213 or lower versions or pip install csc-pysparse