(May-04-2023, 06:37 PM)standenman Wrote: Thanks for your response. In my virtual environment, I get this error:
ERROR: nmslib-2.1.1-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
You most use Python 3.8,and not Python 3.11 as you showed in a other Thread.
Link 3.8 use
Windows installer (64-bit)
do not add to Path.
Then in root folder where you have installed.
# Testet that it point to 3.8
C:\Python38
λ python -V
Python 3.8.9
# Make enviroment
C:\Python38
λ python -m venv sci_env
# cd in
C:\Python38
λ cd sci_env\
# Activate
C:\Python38\sci_env
λ C:\Python38\sci_env\Scripts\activate.bat
# See that it point to sci_env folder
(sci_env) C:\Python38\sci_env
λ pip -V
pip 20.2.3 from c:\python38\sci_env\lib\site-packages\pip (python 3.8)
# List file use <dir > in cmd
(sci_env) C:\Python38\sci_env
λ ls
Include/ Lib/ Scripts/ nmslib-2.1.1-cp38-cp38-win_amd64.whl pyvenv.cfg
# Install wheel
(sci_env) C:\Python38\sci_env
λ pip install nmslib-2.1.1-cp38-cp38-win_amd64.whl
Processing c:\python38\sci_env\nmslib-2.1.1-cp38-cp38-win_amd64.whl
.....
# Install scispacy
(sci_env) C:\Python38\sci_env
λ pip install scispacy
Collecting scispacy
.....
# Test that it work
(sci_env) C:\Python38\sci_env
λ python
Python 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 14:02:34) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scispacy
>>> import spacy
>>>
>>> scispacy.__version__
'0.5.2'
>>> exit()