![]() |
Python development environment - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Python development environment (/thread-39901.html) |
Python development environment - standenman - May-03-2023 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? RE: Python development environment - snippsat - May-03-2023 (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 scispacyscispacy 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.
RE: Python development environment - standenman - May-04-2023 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. RE: Python development environment - snippsat - May-04-2023 (May-04-2023, 06:37 PM)standenman Wrote: Thanks for your response. In my virtual environment, I get this error: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() |