question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default pip/conda installation version is 0.101

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BBCMaxcommented, Jun 18, 2018

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 or pip install spacy=NEWEST_VERSION (in my case I installed 2.0.11)

0reactions
lock[bot]commented, Aug 11, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found