`pip install -e .` fails
See original GitHub issueDuring setup
Exception:
Traceback (most recent call last):
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 483, in check_if_exists
self.satisfied_by = pkg_resources.get_distribution(str(no_marker))
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 468, in get_distribution
dist = get_provider(dist)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 344, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 888, in require
needed = self.resolve(parse_requirements(requirements))
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 779, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pip._vendor.pkg_resources.ContextualVersionConflict: (numpy 1.15.1 (/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages), Requirement.parse('numpy<=1.14.5,>=1.13.3'), {'tensorflow'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 141, in main
status = self.run(options, args)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 299, in run
resolver.resolve(requirement_set)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/resolve.py", line 193, in _get_abstract_dist_for
req, self.require_hashes, self.use_user_site, self.finder,
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 329, in prepare_editable_requirement
req.check_if_exists(use_user_site)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 494, in check_if_exists
self.req.name
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 468, in get_distribution
dist = get_provider(dist)
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 344, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 888, in require
needed = self.resolve(parse_requirements(requirements))
File "/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 779, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pip._vendor.pkg_resources.ContextualVersionConflict: (numpy 1.15.1 (/Users/bendecoste/anaconda3/envs/tf-encrypted/lib/python3.6/site-packages), Requirement.parse('numpy<=1.14.5,>=1.13.3'), {'tensorflow'})
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
pip install -e . does not appear to work · Issue #88 - GitHub
Ok, it seems that pip install -e . will not consider the dependency_links of setup.py (for instance, see http://stackoverflow.com/questions/ ...
Read more >Python project, installation only works with "pip install -e .", but ...
I managed to fix the problem, understanding that the issue was having the main script inside of the package, while importing files from...
Read more >[solved] Problem installing development version (pip install -e .)
Summary: I was trying to install a package in editable mode in a virtual mode using “python -m pip install -e .” and...
Read more >pip install - pip documentation v22.3.1
A failed install is less likely to leave a broken environment. Although pip would like to support failure rollbacks eventually, in the mean...
Read more >Unresolved references to editable packages (pip install
an easy way to reproduce this problem is with pip: $ pip install -E env -e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django. C detected.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @vishwajit123. We’ve recently implemented a custom operation for tensorflow so that we can securely generate random numbers. This custom operation is written in C++ so it must first be built when you’re installing tf-encrypted for development. This is hinted at by the error here:
So a secure random shared object needs to be built first for your installed version of tensorflow. Before digging deeper into this issue it’d be great to know if you were able to get this shared object built. You can usually find it in the
tf-encrypted/tf_encrypted/operations/secure_random/
folder and will look something likesecure_random_module_tf_1.11.0.so
.Glad you got it figured out! Cheers!