I solved this problem by updating my pip to the latest version: pip install --upgrade pip
then 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. Thanks Payam On Mon, Jan 4, 2021 at 9:14 PM <[email protected]> wrote: > [email protected] > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/bpython/topics> > Google > Groups > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > Topic digest > View all topics > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/bpython/topics> > > - Installing bpython in Linux under Windows 10 temrminal > <#m_6117779153378696836_m_4863008356479888617_group_thread_0> - 2 > Updates > > Installing bpython in Linux under Windows 10 temrminal > <http://groups.google.com/group/bpython/t/e33c26f5209c82c2?utm_source=digest&utm_medium=email> > Payam <[email protected]>: 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. > > Thanks > Payam > > c/Users/Payam > ➜ bpython > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574, > in _build_master > ws.require(__requires__) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892, > in require > needed = self.resolve(parse_requirements(requirements)) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 783, > in resolve > raise VersionConflict(dist, req).with_context(dependent_req) > pkg_resources.VersionConflict: (bpython 0.20.1 > (/home/payam49er/.local/lib/python3.9/site-packag > 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/__init__.py", line > 3089, > in <module> > def _initialize_master_working_set(): > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line > 3072, > in _call_aside > f(*args, **kwargs) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line > 3101, > in _initialize_mas > ter_working_set > working_set = WorkingSet._build_master() > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 576, > in _build_master > return cls._build_from_requirements(__requires__) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 589, > in _build_from_requ > irements > dists = ws.resolve(reqs, Environment()) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", 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 <[email protected]>: 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. > > Best > > > -- > Sebastian Ramacher > Back to top <#m_6117779153378696836_m_4863008356479888617_digest_top> > You received this digest because you're subscribed to updates for this > group. You can change your settings on the group membership page > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/bpython/join> > . > To unsubscribe from this group and stop receiving emails from it send an > email to [email protected]. > -- You received this message because you are subscribed to the Google Groups "bpython" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bpython/CAHoqVSe3oMy-%2B2F1xh_S%3DDyrcYZxJBpdjfUt2YWrzrpcbHg3ig%40mail.gmail.com.
