Each time I want to do pipenv install the package is not installed.
I guess it is because of geckodriver but I don't know why.
Error:
✘ Locking Failed!
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/resolver.py", line 69, in resolve
[pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]: req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]: resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches geckodriver
[pipenv.exceptions.ResolutionFailure]: No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches geckodriver
No versions found
Was https://pypi.org/simple reachable?
[pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]: req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]: resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches geckodriver
[pipenv.exceptions.ResolutionFailure]: No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches geckodriver
No versions found
Was https://pypi.org/simple reachable?
Check your pipfile and pipfile.lock file. You probably don't have them present. You need to specify the package you want to install otherwise.
Related
I cannot build a virutal environment using pipenv install, I always get the error No matching distribution found for aws-lambda-powertools if I remove that package I will get the same error for another package I have in there.
Stack trace (displayed when I try to build throgh pycharm)
Pipfile.lock (cb83d8) out of date, updating to (459cf8)...
Locking [packages] dependencies...
⠋ Locking...
Building requirements...
⠙ Locking...
Resolving dependencies...
⠹ Locking...
⠸ Locking...
⠼ Locking...✘ Locking Failed!
CRITICAL:pipenv.patched.pip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement aws-lambda-powertools (from versions: none)
[ResolutionFailure]: File "/Users/n0359100/Library/Python/3.9/lib/python/site-packages/pipenv/resolver.py", line 833, in _main
[ResolutionFailure]: resolve_packages(
[ResolutionFailure]: File "/Users/n0359100/Library/Python/3.9/lib/python/site-packages/pipenv/resolver.py", line 781, in resolve_packages
[ResolutionFailure]: results, resolver = resolve(
[ResolutionFailure]: File "/Users/n0359100/Library/Python/3.9/lib/python/site-packages/pipenv/resolver.py", line 760, in resolve
[ResolutionFailure]: return resolve_deps(
[ResolutionFailure]: File "/Users/n0359100/Library/Python/3.9/lib/python/site-packages/pipenv/utils/resolver.py", line 1103, in resolve_deps
[ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]: File "/Users/n0359100/Library/Python/3.9/lib/python/site-packages/pipenv/utils/resolver.py", line 892, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "/Users/n0359100/Library/Python/3.9/lib/python/site-packages/pipenv/utils/resolver.py", line 687, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for aws-lambda-powertools
I have seen some similar questions but none of those answers fixed my problem.
So the thing is, i installed pipenv and tried to use it to be able to create a pipefile, but i can't, i also got one pair of pipefile and pipefile.lock and tried to install but whenever i try it gives me this:
for example, lets say i want to install requests
PS D:\Projetos\Python\shipay\backend-challenge\bot> pipenv install requests
Installing requests...
Pipfile.lock (d5437b) out of date, updating to (c4c73e)...
Locking [packages] dependencies...
[ =] Resolving dependencies...
ERROR:pip.subprocessor:[present-rich] python setup.py egg_info exited with 1
[ResolutionFailure]: File "C:/Users/leand/AppData/Roaming/Python/Python311/site-packages/pipenv/resolver.py", line 812, in _main
[ResolutionFailure]: pre, clear, verbose, system, write, requirements_dir, packages, category
[ResolutionFailure]: File "C:/Users/leand/AppData/Roaming/Python/Python311/site-packages/pipenv/resolver.py", line 767, in resolve_packages
[ResolutionFailure]: requirements_dir=requirements_dir,
[ResolutionFailure]: File "C:/Users/leand/AppData/Roaming/Python/Python311/site-packages/pipenv/resolver.py", line 747, in resolve
[ResolutionFailure]: req_dir=requirements_dir,
[ResolutionFailure]: File "C:/Users/leand/AppData/Roaming/Python/Python311/site-packages/pipenv\utils\resolver.py", line 1109, in resolve_deps
[ResolutionFailure]: req_dir=req_dir,
[ResolutionFailure]: File "C:/Users/leand/AppData/Roaming/Python/Python311/site-packages/pipenv\utils\resolver.py", line 899, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "C:/Users/leand/AppData/Roaming/Python/Python311/site-packages/pipenv\utils\resolver.py", line 687, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: metadata generation failed
Here's the Pipefile:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
apscheduler = "*"
flask = "*"
psycopg2 = "*"
flask-sqlalchemy = "*"
xlsxwriter = "*"
logging = "*"
requests = "*"
[requires]
python_version = "3.7"
i just got errors, i can't install a single one, and if i enter the pipenv install --skip-lock it doesn't show me nothing at all.
and the code pointed me: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
also, this line pipenv lock --pre --clear that i saw on other post does the same error above
what i need to do here? or am i missing something here?
I am using python3.9 in django framework, for that I have to install mysqlclient. But error is coming when I try
pipenv install mysqlclient
output like this as error:
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV__VERBOSITY=-1 to suppress this warning. Installing mysqlclient... Adding mysqlclient to Pipfile's [packages]... Installation Succeeded Pipfile.lock (06f36b) out of date, updating to (f95eff)... Locking [dev-packages] dependencies... Locking [packages] dependencies...
Resolving dependencies... Locking Failed!
CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement django (from versions: none)
[ResolutionFailure]: File "C:\Users\meghd\anaconda3\lib\site-packages\pipenv\resolver.py", line 743, in _main
[ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]: File "C:\Users\meghd\anaconda3\lib\site-packages\pipenv\resolver.py", line 704, in resolve_packages
[ResolutionFailure]: results, resolver = resolve(
[ResolutionFailure]: File "C:\Users\meghd\anaconda3\lib\site-packages\pipenv\resolver.py", line 685, in resolve
[ResolutionFailure]: return resolve_deps(
[ResolutionFailure]: File "c:\users\meghd\anaconda3\lib\site-packages\pipenv\utils.py", line 1377, in resolve_deps
[ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]: File "c:\users\meghd\anaconda3\lib\site-packages\pipenv\utils.py", line 1106, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "c:\users\meghd\anaconda3\lib\site-packages\pipenv\utils.py", line 884, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for django```
I'm trying to do a command pipenv lock 'cause heroku said my Pipfile.lock is out of date, and I'm trying to upload my django project at heroku. But I constantly got the error like below.
PS C:\Users\josep\Documents\nomad academy\Airbnb-Clone> pipenv lock --pre --clear
Locking [dev-packages] dependencies...
Locking...Building requirements...
Resolving dependencies...
Locking Failed!
[ResolutionFailure]: File "c:\users\josep\.virtualenvs\airbnb-clone-grekw6gp\lib\site-packages\pipenv\resolver.py", line 741, in _main
[ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]: File "c:\users\josep\.virtualenvs\airbnb-clone-grekw6gp\lib\site-packages\pipenv\resolver.py", line 702, in resolve_packages
[ResolutionFailure]: results, resolver = resolve(
[ResolutionFailure]: File "c:\users\josep\.virtualenvs\airbnb-clone-grekw6gp\lib\site-packages\pipenv\resolver.py", line 684, in resolve
[ResolutionFailure]: return resolve_deps(
[ResolutionFailure]: File "C:\Users\josep\.virtualenvs\Airbnb-Clone-GrEkW6GP\lib\site-packages\pipenv\utils.py", line 1395, in resolve_deps
[ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]: File "C:\Users\josep\.virtualenvs\Airbnb-Clone-GrEkW6GP\lib\site-packages\pipenv\utils.py", line 1108, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "C:\Users\josep\.virtualenvs\Airbnb-Clone-GrEkW6GP\lib\site-packages\pipenv\utils.py", line 833, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: Could not find a version that matches pathspec<1,==0.5.9,>=0.6 (from black==20.8b1->-r C:\Users\josep\AppData\Local\Temp\pipenvnt4vjek5requirements\pipenv-0sidr1ev-constraints.txt (line 4))
Tried: 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.5.8, 0.5.9, 0.6.0, 0.7.0, 0.7.0, 0.8.0, 0.8.0, 0.8.1, 0.8.1
There are incompatible versions in the resolved dependencies:
pathspec<1,>=0.6 (from black==20.8b1->-r C:\Users\josep\AppData\Local\Temp\pipenvnt4vjek5requirements\pipenv-0sidr1ev-constraints.txt (line 4))
pathspec==0.5.9 (from awsebcli==3.19.2->-r C:\Users\josep\AppData\Local\Temp\pipenvnt4vjek5requirements\pipenv-0sidr1ev-constraints.txt (line 3))
I searched about that a bit, and I tried quite many like pipenv lock,pipenv lock --clear,etc. But none of them working for me. And according to error, it seems that I'm having this error because of the version issue, but I've got no idea what pipenv want me to do to fix this. What should I do to fix this?
sudo pip install numpy --upgrade PsYcH0
The directory '/Users/karanj/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/karanj/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting numpy
Downloading numpy-1.13.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.6MB)
100% |████████████████████████████████| 4.6MB 281kB/s
Installing collected packages: numpy
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-tfPgJ6-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
Can't get to upgrade numpy because of Errno 1 please help how do I upgrade Numpy.
Tried Unistalling also, but it can't uninstall numpy throws the same error.
Try with python -m pip install SomePackage. -m means that it will install the latest version of the package. Also have a look over here for a nice explanation.