Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/341.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
不同python版本的Pyserial安装_Python_Pyserial - Fatal编程技术网

不同python版本的Pyserial安装

不同python版本的Pyserial安装,python,pyserial,Python,Pyserial,我最初是在miniconda(python3.6)中安装python的。因此,当我安装pyserial时,它是在miniconda3/lib/python3.6/site包下安装的 后来我还安装了python2.7。如何为python2.7安装pyserial(或至少告诉它使用上述pyserial版本)?如果您使用的是conda/miniconda,现在可以通过conda forge频道获得pyserial 3.4 要使用conda安装此软件包,请运行: conda安装-c conda forg

我最初是在miniconda(python3.6)中安装python的。因此,当我安装pyserial时,它是在miniconda3/lib/python3.6/site包下安装的


后来我还安装了python2.7。如何为python2.7安装pyserial(或至少告诉它使用上述pyserial版本)?

如果您使用的是conda/miniconda,现在可以通过conda forge频道获得pyserial 3.4

要使用conda安装此软件包,请运行:

conda安装-c conda forge pyserial

对python2.7使用
pip2