Replies: 3 comments
-
|
@scheung38 Can you provide your |
Beta Was this translation helpful? Give feedback.
-
|
Hi @STeveShary , it is via conda create --name .venv python=3.9.6 conda install -c conda-forge fastapi pip3 freeze > requirements.txt asttokens==2.0.5 But conda list --exports > requirements_conda.txt: This file may be used to create an environment using: |
Beta Was this translation helpful? Give feedback.
-
|
Have you activated your conda env and are running inside of it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Without FastAPI the function works as intended using pandera to validate CSV/Excel, but wrapping FastAPI and
then at base of project:
.venv) ➜ export PYTHONPATH=$PWD
then cd into src folder
(.venv) ➜ src git:(master) ✗ uvicorn main:app --reload
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/Users/mincheung/Documents/file_processing_pipeline/src/./main.py", line 2, in
import pandera as pa
ModuleNotFoundError: No module named 'pandera'
Operating System
macOS
Operating System Details
Big Sur 11.5.2
FastAPI Version
0.68.1
Python Version
Python 3.9.6
Additional Context
Thank you
Beta Was this translation helpful? Give feedback.
All reactions