![]() I agree that the behavior is confusing, but after thinking about it a while I'm inclined to agree with the maintainer. I was the owner of two private repositories repoA and repoB in a Github organization and needed to pip install repoA during the python unittests of repoB, as a Github action. ![]() So I guess the spaCy dependencies are still kept around. Pip clones the branch/commit and then looks at the version number specified in it's setup.py. My case was kind of more complicated than most of the ones described in the answers. To enable this sub-dependency functionality, specify that this dependency is editable. This will work fine, but sub-dependencies will not be resolved by $ pipenv lock. There's more that could be done to optimize this multistage build, but this is just a concise explanation of how to avoid the dependency issue you described. Warning: You installed a VCS dependency in non-editable mode. This way, you only install git in the first stage, but it won't be present in the final built image. Then installing without -e pipenv install git+ This means all dependencies are compiled except spaCy. _: Command "python setup.py egg_info" failed with error code 1 in /var/folders/q0/23jhzjyd4c778437xkp_k4pc0000gn/T/tmpky4kwd64source/spacy/ Using the -e after a long time the error below popped up. Next I was able to download model using python -m spacy download en_core_web_sm To install a package from a subdirectory, say stackoverflow. In GitLab 14.2 and later, when a PyPI package is not found in the Package Registry, the request is forwarded to. I did install the setuptools first and omitted the -e pipenv install setuptools Instructions to install from private repo using ssh credentials: pip install git+ssh:///myuser/foo.gitmyversion. ![]() 'No files/directories in %s (from %s)' % (base, filename) Legacy_results = self.get_legacy_dependencies(ireq)įile "/home/me/.local/lib/python3.5/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 221, in get_legacy_dependenciesįile "/home/me/.local/lib/python3.5/site-packages/pipenv/vendor/pip9/req/req_install.py", line 1069, in get_distĮgg_info = self.egg_info_path('').rstrip('/')įile "/home/me/.local/lib/python3.5/site-packages/pipenv/vendor/pip9/req/req_install.py", line 515, in egg_info_path (2) After installing the required packages the install runs through, but the creation of the Pipfile.lock fails with: Adding -e git+ to Pipfile's …įile "/home/me/.local/lib/python3.5/site-packages/pipenv/patched/piptools/resolver.py", line 275, in _iter_dependenciesįor dependency in _dependencies(ireq):įile "/home/me/.local/lib/python3.5/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 202, in get_dependencies ![]() What is the appropriate place to add those, so that they get installed automatically? I tried setup_requires in setup.py but that didn't work. (1) Install fails, because the following packages need to be installed before: cython, preshed, murmurhash, thinc. This support requires a working executable to be available (for the version control system being used). Using pipenv to install the spaCy package from github with pipenv install -e git+ pip supports installing from various version control systems (VCS). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |