mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1986] pip freeze not working in my virtual env, instead it is showing this! #1486
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1486
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yashjain0 on GitHub (Jul 5, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1986
(chinu) abitribe@yashmacbook chinu % pip freeze
Traceback (most recent call last):
File "/Users/abitribe/Desktop/chinu/bin/pip", line 8, in
sys.exit(main())
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 73, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/commands/init.py", line 104, in create_command
module = importlib.import_module(module_path)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/commands/freeze.py", line 12, in
from pip._internal.operations.freeze import freeze
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/operations/freeze.py", line 16, in
from pip._internal.req.constructors import (
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/req/init.py", line 12, in
from .req_install import InstallRequirement
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 30, in
from pip._internal.operations.install.wheel import install_wheel
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_internal/operations/install/wheel.py", line 25, in
from pip._vendor.distlib.scripts import ScriptMaker
File "/Users/abitribe/Desktop/chinu/lib/python2.7/site-packages/pip/_vendor/distlib/scripts.py", line 14, in
from .compat import sysconfig, detect_encoding, ZipFile
ImportError: No module named compat
@tonioo commented on GitHub (Jul 23, 2020):
@luciferon Have you updated pip?
@yashjain0 commented on GitHub (Sep 14, 2020):
By the way the answer was simple, we have to create a virtualenv using
" virtualenv -p python3 "
this will create a virtaulenv with python3 as default python version and hence the code will run!
@yashjain0 commented on GitHub (Sep 14, 2020):
yes I have!