简体   繁体   English

Python 3.5 Mac OSX模块导入

[英]Python 3.5 Mac OSX module import

I am trying to add the module telepot to Python 3.5 on my Mac, but i can't find the folder where the python files are. 我正在尝试在Mac上将模块Telepot添加到Python 3.5,但是我找不到python文件所在的文件夹。

I tried the Library/Python folder, but it didn't work because it only had python 2.6 and 2.7 versions in it, i tried creating a folder there but it still didn't work , how can i add the module? 我尝试了Library / Python文件夹,但由于其中只有python 2.6和2.7版本而无法使用,我尝试在其中创建一个文件夹,但仍然无法正常工作,如何添加模块?

Thank you 谢谢

Follow the instructions for telepot. 遵循有关Telepot 的说明 Depending how you have setup Python 3.5 on your machine, it may be done different. 根据您在计算机上设置Python 3.5的方式,它的操作可能有所不同。 I am guessing you could write: 我猜你可以写:

pip3 install telepot

or: 要么:

sudo pip3 install telepot

If you have a VirtualEnv setup, it might just be 如果您有VirtualEnv设置,则可能只是

pip install telepot

or: 要么:

sudo pip install telepot

这是我的Mac上的示例,您是否有python3目录?

/usr/local/lib/python3.5/site-packages/wheel/tool

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM