gpt4 book ai didi

python - 如何将 PyDDE 安装到 Python 3.4 而不是 Python 2.4

转载 作者:太空宇宙 更新时间:2023-11-04 05:53:01 24 4
gpt4 key购买 nike

我目前正在尝试安装 PyDDE 包。

转到命令行并运行 pip install PyDDE 最初不起作用,所以我从 https://github.com/hensing/PyDDE 下载了 zip 包

然后我导航到解压缩的文件夹并使用安装说明中指定的 python setup.py 命令。

这在 python 2.7 中安装了 PyDDE 模块,键入 import PyDDE 会生成 2.7 中的模块。但是,它不会安装在 3.4 中。

我在stackoverflow上发现了这个类似的问题( Python 3.4 and 2.7: Cannot install numpy package for python 3.4

Installing numpy for Python 2.7 while also having Python 3.4 installed?

它提供了使用 sudo pip 和转到 python 3.4 文件夹以及使用 easy_install PyDDE 等解决方案

因为当我使用时它已经为 python 2.7 安装了:easy_install PyDDE 或pip 安装 PyDDE它高兴地告诉我 pydde 0.2.2 已经安装/事件版本,但是,加载 Python 3.4 和导入 PyDDE 仍然不起作用。我也试过 python34 install PyDDE 但 python34 不是可识别的命令。

如有任何帮助,我们将不胜感激。

最佳答案

你需要使用pip3:

pip3 install PyDDE 

pip 安装 python2 包,pip3 安装 python3 包。

您的 pythonpath 中需要 python3 转到:

My Computer/Properties/Advanced System Settings/Environment Variables

并将 C:\Python34\;C:\Python34\Scripts\ 添加到您的 python 路径。

然后下载get-pip.py并运行 python34 get-pip.py

关于python - 如何将 PyDDE 安装到 Python 3.4 而不是 Python 2.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29198978/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com