1 python包所在的目录:
-
默认的在安装文件的Lib\site-packages\路径下面;
-
如果想自己控制这些模块的话,可以放在任何地方,然后把这个路径设置为环境变量即可.
2 runtime error:package 'socket' must not be downloaded from pypi
对于这个问题解决,在我所找到的答案中是这样解释的:socket
module is already included in the standard library(标准程序库
). You don't have to download anything. Just type
import socket
and you're all set.简单的说就是你已经安装有socket包,不需要再进行安装.
后续补充......