python2 安装jpype及numpy,为hanlp做准备
Microsoft Windows [版本 10.0.17134.345] (c) 2018 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>d: D:\>cd pythonworkspace2 D:\pythonworkspace2>mkdir huanjing 子目录或文件 huanjing 已经存在。 D:\pythonworkspace2>virtualenv -p C:\Python27 my_project_env The path C:\Python27 (from --python=C:\Python27) is not an executable file D:\pythonworkspace2>virtualenv -p C:\Python27\python.exe aaa Running virtualenv with interpreter C:\Python27\python.exe New python executable in D:\pythonworkspace2\aaa\Scripts\python.exe Installing setuptools, pip, wheel...done. D:\pythonworkspace2>cd aaa D:\pythonworkspace2\aaa>cd Scripts D:\pythonworkspace2\aaa\Scripts>activate (aaa) D:\pythonworkspace2\aaa\Scripts>pip install (aaa) D:\pythonworkspace2\aaa\Scripts>cd f:\python\v27 (aaa) D:\pythonworkspace2\aaa\Scripts>f: (aaa) f:\python\v27>pip install JPype1-0.6.3-cp27-cp27m-win_amd64.whl Processing .\jpype1-0.6.3-cp27-cp27m-win_amd64.whl Installing collected packages: JPype1 Successfully installed JPype1-0.6.3 (aaa) f:\python\v27>pip install numpy-1.14.5+mkl-cp27-cp27m-win_amd64.whl Processing .\numpy-1.14.5+mkl-cp27-cp27m-win_amd64.whl Installing collected packages: numpy Successfully installed numpy-1.14.5+mkl (aaa) f:\python\v27>
C:\Users\Administrator>cd D:\pythonworkspace2\huanjing C:\Users\Administrator>d: D:\pythonworkspace2\huanjing>virtualenv my_project_env3 New python executable in D:\pythonworkspace2\huanjing\my_project_env3\Scripts\python.exe Installing setuptools, pip, wheel...done. D:\pythonworkspace2\huanjing>cd my_project_env3\Scripts D:\pythonworkspace2\huanjing\my_project_env3\Scripts>activate (my_project_env3) D:\pythonworkspace2\huanjing\my_project_env3\Scripts>f: (my_project_env3) F:\>cd python\v27 (my_project_env3) F:\python\v27>pip install JPype1-0.6.3-cp27-cp27m-win_amd64.whl Processing f:\python\v27\jpype1-0.6.3-cp27-cp27m-win_amd64.whl Installing collected packages: JPype1 Successfully installed JPype1-0.6.3 (my_project_env3) F:\python\v27>pip install "numpy-1.14.5+mkl-cp27-cp27m-win_amd64.whl" Processing f:\python\v27\numpy-1.14.5+mkl-cp27-cp27m-win_amd64.whl Installing collected packages: numpy Successfully installed numpy-1.14.5+mkl (my_project_env3) F:\python\v27>pip list Package Version ---------- ---------- JPype1 0.6.3 numpy 1.14.5+mkl pip 18.1 setuptools 40.5.0 wheel 0.32.2 (my_project_env3) F:\python\v27>
你的指尖,有着改变世界的力量!