Re: Digest for - 2 updates in 1 topic

Skip to first unread message


Jan 4, 2021, 11:09:16 PMJan 4
I solved this problem by updating my pip to the latest version:
pip install --upgrade pip


python -m pip install bpython

upon successful installation, you get a message regarding where the bpython is installed. You need to add this path to your shell.
Then it works.


On Mon, Jan 4, 2021 at 9:14 PM <> wrote:
Payam <>: Jan 03 06:19PM -0800

Hi folks
I've been trying to install bpython under Windows 10 Terminal linux
(Ubuntu), and unfortunately either through pip or ap-get, I still get the
same error when I run bpython.
Please help me to solve this problem.
➜ bpython
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pkg_resources/", line 574,
in _build_master
File "/usr/lib/python3/dist-packages/pkg_resources/", line 892,
in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/", line 783,
in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (bpython 0.20.1
es), Requirement.parse('bpython==0.17.1'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/bpython", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/", line 3089,
in <module>
def _initialize_master_working_set():
File "/usr/lib/python3/dist-packages/pkg_resources/", line 3072,
in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/", line 3101,
in _initialize_mas
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/", line 576,
in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/", line 589,
in _build_from_requ
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3/dist-packages/pkg_resources/", line 778,
in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'bpython==0.17.1' distribution was
not found and is requ
ired by the application
Sebastian Ramacher <>: Jan 04 05:03PM +0100

Hi Payam
On 2021-01-03 18:19:24, Payam wrote:
> pkg_resources.VersionConflict: (bpython 0.20.1
> (/home/payam49er/.local/lib/python3.9/site-packag
> es), Requirement.parse('bpython==0.17.1'))
You seem to have incompatible versions of bpython installed. In this
case, the bpython binary tries to execture bpython version 0.17.1,
bpython version 0.20.1 is found. Do you have some old version still
installed? In general though, mixing pip and apt-get is not a good idea
and causes issues like that.
Sebastian Ramacher
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to
Reply all
Reply to author
0 new messages