ERROR: Could not install packages due to an EnvironmentError when installing Tencent Youtu in PyCharm integrated Anaconda3 environment

1. The screenshot of the error report is as follows:

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:'C:\Users\Zep\Python_sdk-master.zip'
Insert picture description here
Insert picture description here
I first downloaded Python_sdk from the official website, and then directly put the Python_sdk folder Put it in the file directory of Anaconda3. I thought it would be normal after doing this import TencentYoutuyun, but I found that it did n't work.

Two, the solution

1. First compress the Python_sdk file to generate the Python_sdk.zip file and place it in the file directory where Anaconda3 is located.
Insert picture description here
2. Win+R, enter cmd, open the command prompt window, and enter pip install Python_sdk.zip
Note: The format is pip install + your compression The name of the
Insert picture description here
file.zip 3. The command line shows Successfully installed TencentYoutuyun-1.0.0, which means that the installation is successful and it is normal import TencentYoutuyun!

Guess you like

Origin blog.csdn.net/weixin_44827418/article/details/110621942