Hey, I'm trying to install dotenv package in my virtual environment using pip but I got this error:
warnings.warn(
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 14, in <module>
File "/tmp/pip-wheel-gp0mn39h/distribute_6b02d663f4734bfa97410a1cfcc26889/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/tmp/pip-wheel-gp0mn39h/distribute_6b02d663f4734bfa97410a1cfcc26889/setuptools/extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "/tmp/pip-wheel-gp0mn39h/distribute_6b02d663f4734bfa97410a1cfcc26889/setuptools/dist.py", line 7, in <module>
from setuptools.command.install import install
File "/tmp/pip-wheel-gp0mn39h/distribute_6b02d663f4734bfa97410a1cfcc26889/setuptools/command/__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "/tmp/pip-wheel-gp0mn39h/distribute_6b02d663f4734bfa97410a1cfcc26889/setuptools/command/install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/tmp/pip-wheel-gp0mn39h/distribute_6b02d663f4734bfa97410a1cfcc26889/pkg_resources.py", line 1518, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
[end of output]
I looked online and tried their suggested solution but didn't work.
Also, this is the output of pip list:
Hey, I'm trying to install dotenv package in my virtual environment using pip but I got this error:
I looked online and tried their suggested solution but didn't work. Also, this is the output of
pip list
:Thanks.