Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import "spacy" could not be resolved from source Pylance(reportMissingModuleSource) #1

Closed
patmejia opened this issue May 15, 2023 · 0 comments

Comments

@patmejia
Copy link
Owner

patmejia commented May 15, 2023

Debug:

Terminal

  1. Create a virtual environment:
python -m venv .env
  1. Activate the virtual environment:
source .env/bin/activate  # Unix/Linux/Mac
.env\Scripts\activate.bat  # Windows
  1. or, Activate conda (if not already activated):
conda activate spacy-llm
  1. Install the spacy-llm package using conda:
conda install spacy-llm
  1. Validate installation
python -m spacy validate

In VScode:

  • cmd + p

  • > Python: Select interpreter + return

Screenshot 2023-05-14 at 10 01 12 PM
  • select interpreter at workspace level
Screenshot 2023-05-14 at 10 02 01 PM

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant