Python Forum
Python development environment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python development environment
#1
I am having horrible problems with using Python on my Windows machine. I want to try scispacy out and I cannot get it to install. I am wondering if there is a better development environment that my desktop. I am put the code through the paces and figure out if spacy can meet my ML needs for medical record review and summarization. Is there a better path I could be on?
Reply
#2
(May-03-2023, 02:28 AM)standenman Wrote: I want to try scispacy out and I cannot get it to install.
The problem is NMSLIB it need compiler for newer version on windows.
Can use wheel then need to use Python 3.8,make a virtual environment 3.8 then do this.
pip install nmslib-2.1.1-cp38-cp38-win_amd64.whl
pip install scispacy
scispacy is a side project of spaCy and that is dos not have conda install(would have fixed complier problems) and use NMSLIB make this problem on Windows.
Reply
#3
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.
Reply
#4
(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()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing python packages in a virtual environment Led_Zeppelin 1 775 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Development Environment Problems standenman 1 534 Jun-13-2023, 10:45 PM
Last Post: Larz60+
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,291 May-10-2023, 02:13 PM
Last Post: Calab
  Python Scripting Environment jpotter0 1 1,722 Nov-19-2022, 03:07 PM
Last Post: snippsat
  How do I link the virtual environment of that project to the 3.9.2 version of python? Bryant11 1 1,381 Feb-26-2022, 11:15 AM
Last Post: Larz60+
  VS Code debugger using wrong Python environment topfox 0 2,516 Jun-09-2021, 10:01 AM
Last Post: topfox
  Virtual environment and upgrading python 3.5 to 3.9 NeilUK 4 12,165 Jan-24-2021, 01:02 PM
Last Post: snippsat
  Installing keras in Python 2.7 environment ErnestTBass 3 5,456 Nov-01-2020, 08:36 PM
Last Post: jefsummers
  Python development envirornment flaviu2 3 2,902 Oct-27-2020, 02:36 PM
Last Post: flaviu2
  Python in Linux environment on RPI kendias 22 11,155 Sep-05-2020, 03:04 AM
Last Post: K_Research

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020