Я пытаюсь проверить путь Python и PIP на моем компьютере здесь, результат < /p>
Код: Выделить всё
/Users/macbookairm2/Code/Dev/Fiverr/Scraping/project/AAMUProject/RosterBio/venv/bin/python
venv➜ RosterBio git:(dockerized) ✗ which pip
/Users/macbookairm2/Code/Dev/Fiverr/Scraping/project/AAMUProject/RosterBio/venv/bin/pip
venv➜ RosterBio git:(dockerized) ✗
< /code>
И вот мой список PIP < /p>
pip list
Package Version
------------------------- - - - - - - - - - - - < b r / > a l e m b i c 1 . 1 4 . 1 < b r / > a m q p 5 . 3 . 1 < b r / > a n n o t a t e d - t y p e s 0 . 7 . 0 < b r / > a n y i o 4 . 4 . 0 < b r / > a t t r s 2 4 . 2 . 0 < b r / > a u t o m a t o n 3 . 2 . 0 < b r / > a u t o p a g e 0 . 5 . 2 < b r / > a z u r e - f u n c t i o n s 1 . 2 1 . 3 < b r / > b c r y p t 4 . 2 . 1 < b r / > b e a u t i f u l s o u p 4 4 . 1 3 . 3 < b r / > c a c h e t o o l s 5 . 5 . 2 < b r / > c e r t i f i 2 0 2 4 . 8 . 3 0 < b r / > c f f i 1 . 1 7 . 1 < b r / > c h a r s e t - n o r m a l i z e r 3 . 3 . 2 < b r / > c l i c k 8 . 1 . 7 < b r / > c l i f f 4 . 8 . 0 < b r / > c m d 2 2 . 5 . 1 1 < b r / > c r y p t o g r a p h y 4 4 . 0 . 1 < b r / > d e b t c o l l e c t o r 3 . 0 . 0 < b r / > d e c o r a t o r 5 . 2 . 0 < b r / > d n s p y t h o n 2 . 7 . 0 < b r / > d o g p i l e . c a c h e 1 . 3 . 4 < b r / > e v e n t l e t 0 . 3 9 . 0 < b r / > f a s t a p i 0 . 1 1 5 . 8 < b r / > f a s t e n e r s 0 . 1 9 < b r / > f u t u r i s t 3 . 0 . 0 < b r / > g n u r e a d l i n e 8.2.13
greenlet 3.1.1
h11 0.14.0
httpcore 1.0.5
httpx 0.27.2
idna 3.8
importlib_metadata 8.6.1
iso8601 2.1.0
Jinja2 3.1.5
jmespath 1.0.1
jsonpatch 1.33
jsonpointer 3.0.0
jsonschema 4.23.0
jsonschema-specifications 2024.10.1
keystoneauth1 5.10.0
keystonemiddleware 10.9.0
kombu 5.4.2
legacy-cgi 2.6.2
logutils 0.3.5
magnum 19.0.0
Mako 1.3.9
mangum 0.19.0
markdown-it-py 3.0.0
MarkupSafe 3.0.2
mdurl 0.1.2
msgpack 1.1.0
netaddr 1.3.0
networkx 3.4.2
numpy 2.2.3
openstacksdk 4.3.0
os-client-config 2.1.0
os-service-types 1.7.0
osc-lib 3.2.0
oslo.cache 3.10.1
oslo.concurrency 7.1.0
oslo.config 9.7.1
oslo.context 5.7.1
oslo.db 17.2.0
oslo.i18n 6.5.1
oslo.log 7.1.0
oslo.messaging 16.1.0
oslo.metrics 0.11.0
oslo.middleware 6.3.1
oslo.policy 4.5.1
oslo.reports 3.5.1
oslo.serialization 5.7.0
oslo.service 4.1.0
oslo.upgradecheck 2.5.0
oslo.utils 8.2.0
oslo.versionedobjects 3.6.0
outcome 1.3.0.post0
packaging 24.1
pandas 2.2.3
Paste 3.10.1
PasteDeploy 3.1.0
pbr 6.1.1
pecan 1.5.1
pip 25.0.1
platformdirs 4.3.6
prettytable 3.14.0
prometheus_client 0.21.1
psutil 7.0.0
pycadf 4.0.1
pycparser 2.22
pydantic 2.10.6
pydantic_core 2.27.2
pydot 3.0.4
Pygments 2.18.0
PyJWT 2.10.1
pyOpenSSL 25.0.0
pyparsing 3.2.1
pyperclip 1.9.0
PySocks 1.7.1
python-barbicanclient 7.0.0
python-cinderclient 9.6.0
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
python-glanceclient 4.7.0
python-heatclient 4.1.0
python-keystoneclient 5.5.0
python-neutronclient 11.4.0
python-novaclient 18.8.0
python-octaviaclient 3.9.0
python-openstackclient 7.3.1
python-swiftclient 4.6.0
pytz 2024.2
PyYAML 6.0.2
referencing 0.36.2
repoze.lru 0.7
requests 2.32.3
requestsexceptions 1.4.0
rfc3986 2.0.0
rich 13.8.0
Routes 2.5.1
rpds-py 0.23.1
selenium 4.25.0
setuptools 75.8.0
shellingham 1.5.4
simplegeneric 0.8.1
six 1.16.0
sniffio 1.3.1
sortedcontainers 2.4.0
soupsieve 2.6
SQLAlchemy 2.0.38
starlette 0.45.3
statsd 4.0.1
stevedore 5.4.1
taskflow 5.11.0
tenacity 9.0.0
testresources 2.0.1
testscenarios 0.5.0
testtools 2.7.2
trio 0.26.2
trio-websocket 0.11.1
typer 0.12.5
typing_extensions 4.12.2
tzdata 2024.2
urllib3 2.2.3
uvicorn 0.34.0
vine 5.1.0
warlock 2.0.1
wcwidth 0.2.13
webdriver-manager 4.0.2
WebOb 1.8.9
websocket-client 1.8.0
Werkzeug 3.1.3
wrapt 1.17.2
WSME 0.12.1
wsproto 1.2.0
yappi 1.6.10
zipp 3.21.0
venv➜ RosterBio git:(dockerized)
Код: Выделить всё
uvicorn manage:app --host 0.0.0.0 --port 8000 --reload
INFO: Will watch for changes in these directories: ['/Users/macbookairm2/Code/Dev/Fiverr/Scraping/nivyschedulescraper/AAMUProject/RosterBio/src']
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process [62922] using WatchFiles
Process SpawnProcess-1:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 195, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/importer.py", line 22, in import_from_string
raise exc from None
File "/opt/homebrew/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/Users/macbookairm2/Code/Dev/Fiverr/Scraping/nivyschedulescraper/AAMUProject/RosterBio/src/manage.py", line 2, in
from core import create_app
File "/Users/macbookairm2/Code/Dev/Fiverr/Scraping/nivyschedulescraper/AAMUProject/RosterBio/src/core/__init__.py", line 2, in
from api.v1.routers.rosterbio import router
File "/Users/macbookairm2/Code/Dev/Fiverr/Scraping/nivyschedulescraper/AAMUProject/RosterBio/src/api/v1/routers/rosterbio.py", line 4, in
from services.rosterbio_service import RosterBioService
File "/Users/macbookairm2/Code/Dev/Fiverr/Scraping/nivyschedulescraper/AAMUProject/RosterBio/src/services/rosterbio_service.py", line 5, in
from modules.spider.rosterbio import AamuSportRosterSpider
File "/Users/macbookairm2/Code/Dev/Fiverr/Scraping/nivyschedulescraper/AAMUProject/RosterBio/src/modules/spider/rosterbio.py", line 3, in
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
Подробнее здесь: https://stackoverflow.com/questions/794 ... -installed