Default pip/conda installation version is 0.101
See original GitHub issueI spent a chunk of time struggling to install spaCy earlier - getting the below error:
No module named spacy.__main__; 'spacy' is a package and cannot be directly executed
This would appear after an apparently successful install (either through pip or conda) when trying to download models or even run python -m spacy info
.
After some time I noticed that by default it was installing spacy-0.101.0
. After explicitly getting conda to install the current latest version of spaCy (2.0.11), I no longer experienced any of these issues.
Just bringing this to your attention in case it can be rectified, or at least save time for others experiencing similar issues!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Managing packages - Conda
Adding default packages to new environments automatically. Removing packages ... To install a specific version of a package such as SciPy:.
Read more >Using Pip to install packages to Anaconda Environment
If you have many pip and python version installed in linux, then first run below command to list all installed pip paths. You...
Read more >Python on the HPC Clusters - Princeton Research Computing
Unlike pip, conda is both a package manager and an environment manager. ... Create an environment called myenv and install Python version 3.6...
Read more >Install Python packages to a specific Conda environment - AWS
I want to install Python packages to a specific Conda environment, check installed package versions, or create a persistent Conda ...
Read more >The difference between conda and pip and how not to break ...
Everybody is mix and matching words pip, conda and install until it ... it does not support multiple versions of same package installed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No worries! This is a new laptop, and actually my first time using spaCy too so I can pretty comfortably rule out the presence of any previous spaCy installations.
Find the most recent version of spaCy on conda:
conda search -f spacy
Find the most recent version on pip (the only way I know to see available versions of a package on pip is to specify a nonsense version and then it will list all available versions of the specified package):
pip install spacy==random_words
Then either run
conda install spacy=NEWEST_VERSION
orpip install spacy=NEWEST_VERSION
(in my case I installed 2.0.11)This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.