Comments (4)
It works fine for me:
10:53:39 ~> cd /tmp
10:54:00 /tmp> virtualenv -p /usr/bin/python test
Running virtualenv with interpreter /usr/bin/python
New python executable in test/bin/python
Installing setuptools, pip...done.
10:54:24 /tmp> cd test
10:54:29 /t/test> . bin/activate.fish
(test)10:54:31 /t/test> pip install bidict
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting bidict
/private/tmp/test/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading bidict-0.9.0.post1.tar.gz
Installing collected packages: bidict
Running setup.py install for bidict
Successfully installed bidict-0.9.0.post1
(test)10:54:39 /t/test> python -c 'import bidict'
(test)10:54:50 /t/test> pip uninstall bidict
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Uninstalling bidict-0.9.0.post1:
/private/tmp/test/lib/python2.7/site-packages/bidict-0.9.0.post1-py2.7.egg-info
/private/tmp/test/lib/python2.7/site-packages/bidict/VERSION
/private/tmp/test/lib/python2.7/site-packages/bidict/__init__.py
/private/tmp/test/lib/python2.7/site-packages/bidict/__init__.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/_bidict.py
/private/tmp/test/lib/python2.7/site-packages/bidict/_bidict.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/_collapsing.py
/private/tmp/test/lib/python2.7/site-packages/bidict/_collapsing.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/_common.py
/private/tmp/test/lib/python2.7/site-packages/bidict/_common.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/_frozen.py
/private/tmp/test/lib/python2.7/site-packages/bidict/_frozen.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/_named.py
/private/tmp/test/lib/python2.7/site-packages/bidict/_named.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/compat.py
/private/tmp/test/lib/python2.7/site-packages/bidict/compat.pyc
/private/tmp/test/lib/python2.7/site-packages/bidict/util.py
/private/tmp/test/lib/python2.7/site-packages/bidict/util.pyc
Proceed (y/n)? y
Successfully uninstalled bidict-0.9.0.post1
(test)10:54:57 /t/test> python -c 'import bidict'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named bidict
What version of bidict do you have installed? What happens if you try with a fresh virtualenv as I just demonstrated?
I'm going to close this for now but if it becomes apparent there's really a bug I'll reopen.
P.S. Not related to your pip uninstall issue, but from your code sample, using a bidict.BidirectionalMapping
there suggests you probably want a bidict.bidict
instead. Did you read the docs? e.g. http://bidict.readthedocs.org/en/latest/other-bidict-types.html
from bidict.
By the way, you can always manually remove an unwanted package from a virtualenv by deleting its files from inside your lib/pythonX.Y/site-packages/
directory and removing the corresponding line from lib/pythonX.Y/site-packages/easy-install.pth
.
One other thing you could try is upgrading to a more recent version of pip, as 1.5.6 is pretty old.
from bidict.
After some more research: yes it failed to install, BUT - so did other pip install packages. So I think there's something broken about my pip or virtualenv in this system.
from bidict.
Glad you made some progress identifying the problem and best of luck debugging further.
By the way, if you'd like to share what you're using bidict for (assuming you can get it installed:), I'm always interested in better understanding my users and their use cases.
from bidict.
Related Issues (20)
- global name 'BidirectionalMapping' is not defined HOT 21
- github git tags out of sync since 0.18.4 HOT 3
- Missing __all__ in bidict/__init__.py leads to implicit reexport error with mypy in strict mode. HOT 9
- logo HOT 5
- Dependency Dashboard
- Type hints for Bidict type HOT 2
- Try slipcover HOT 1
- Maybe use nix for devcontainer and GHA “tests” workflow
- Why it returns None when I use bidict?
- Will you add a persistence method? HOT 1
- Improve OpenSSF Scorecard HOT 6
- Swap syntax does not work HOT 4
- Automate upgrading dev dependencies HOT 1
- Type alias definition for `MISSING` results in type violations HOT 1
- test fails with python3.12 HOT 3
- Remove dead batteries
- 0.22.1: temp directory in source tree trashes build HOT 6
- 0.22.1: sphinx warnings `reference target not found` HOT 6
- mypy type inference change in 0.23.0 HOT 12
- Recommended performant alt for `namedbidict` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bidict.