I want to use kivy in pycharm. After I add python.bat in "Project Interpreter", it takes about 20 min to Update skeletons. Everything is ok till here but after I close pycharm
and open again, pycharm
wants to update skeletons again forcing me to wait for 20 min everytime. What should I do?
我想在pycharm中使用kivy。在“Project Interpreter”中添加python.bat后,更新骨架大约需要20分钟。一切都还可以,但是在我关闭pycharm并再次打开之后,pycharm想要再次更新骨架,迫使我每次等待20分钟。我该怎么办?
1 个解决方案
#1
Here's an alternative install with skeleton updates completing in under a minute. Rather than using the recommended kivy.zip portable archive install, install kivy in the usual way on a virtual environment:
这是一个替代安装,骨架更新在一分钟内完成。而不是使用推荐的kivy.zip可移植存档安装,在虚拟环境中以通常的方式安装kivy:
-
Ensure you have the latest version of Pip (e.g.
pip install --upgrade pip
)确保您拥有最新版本的Pip(例如pip install --upgrade pip)
-
Install virtual env if you haven't already
如果您还没有安装虚拟环境
-
Create a virtual env home directory on your PC: (e.g. type a name for it such as "
.venv.
")在您的PC上创建虚拟环境主目录:(例如,为其键入一个名称,例如“.venv。”)
-
Create a subdirectory for Kivy virtual environments (
\.venv\kivy
)为Kivy虚拟环境创建一个子目录(\ .venv \ kivy)
-
cd
into your virtual enviroment home directory:cd C:\somewhere\.venv\kivy
进入你的虚拟环境主目录:cd C:\ somewhere \ .venv \ kivy
-
create a virtual environment:
virtualenv venv
创建一个虚拟环境:virtualenv venv
-
Activate your virtual environment:
venv\scripts\activate.bat
激活您的虚拟环境:venv \ scripts \ activate.bat
-
Download the latest kivy wheel into your current directory
将最新的kivy轮下载到当前目录中
-
Install the wheel of Kivy:
pip install --use-wheel Kivy-1.9.0-cp27-none-win32.whl
安装Kivy的*:pip install --use-wheel Kivy-1.9.0-cp27-none-win32.whl
-
Add
\.venv\kivy\venv\Scripts\python.exe
as the interpreter for your pycharm project添加\ .venv \ kivy \ venv \ Scripts \ python.exe作为pycharm项目的解释器
#1
Here's an alternative install with skeleton updates completing in under a minute. Rather than using the recommended kivy.zip portable archive install, install kivy in the usual way on a virtual environment:
这是一个替代安装,骨架更新在一分钟内完成。而不是使用推荐的kivy.zip可移植存档安装,在虚拟环境中以通常的方式安装kivy:
-
Ensure you have the latest version of Pip (e.g.
pip install --upgrade pip
)确保您拥有最新版本的Pip(例如pip install --upgrade pip)
-
Install virtual env if you haven't already
如果您还没有安装虚拟环境
-
Create a virtual env home directory on your PC: (e.g. type a name for it such as "
.venv.
")在您的PC上创建虚拟环境主目录:(例如,为其键入一个名称,例如“.venv。”)
-
Create a subdirectory for Kivy virtual environments (
\.venv\kivy
)为Kivy虚拟环境创建一个子目录(\ .venv \ kivy)
-
cd
into your virtual enviroment home directory:cd C:\somewhere\.venv\kivy
进入你的虚拟环境主目录:cd C:\ somewhere \ .venv \ kivy
-
create a virtual environment:
virtualenv venv
创建一个虚拟环境:virtualenv venv
-
Activate your virtual environment:
venv\scripts\activate.bat
激活您的虚拟环境:venv \ scripts \ activate.bat
-
Download the latest kivy wheel into your current directory
将最新的kivy轮下载到当前目录中
-
Install the wheel of Kivy:
pip install --use-wheel Kivy-1.9.0-cp27-none-win32.whl
安装Kivy的*:pip install --use-wheel Kivy-1.9.0-cp27-none-win32.whl
-
Add
\.venv\kivy\venv\Scripts\python.exe
as the interpreter for your pycharm project添加\ .venv \ kivy \ venv \ Scripts \ python.exe作为pycharm项目的解释器