【问题标题】:Issue pip install igramscraper with python使用 python 发出 pip install igramscraper
【发布时间】:2023-03-09 02:17:01
【问题描述】:

我正在尝试在 python 中的 jupyter notebook 上安装 igramscraper,但它不起作用。

!pip install igramscraper

Collecting igramscraper
  Downloading igramscraper-0.3.5.tar.gz (24 kB)

    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\pip-install-fu3_o27u\\igramscraper\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\pip-install-fu3_o27u\\igramscraper\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-fu3_o27u\igramscraper\pip-egg-info'
         cwd: C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-fu3_o27u\igramscraper\
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-fu3_o27u\igramscraper\setup.py", line 8, in <module>
        long_description=Path("README.md").read_text(),
      File "C:\ProgramData\Anaconda3\lib\pathlib.py", line 1217, in read_text
        return f.read()
      File "C:\ProgramData\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 659: character maps to <undefined>
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

【问题讨论】:

    标签: python web-scraping installation pip instagram


    【解决方案1】:
    1. 下载文件igramscraper-0.3.5.rar
    2. 解压文件,在目录下找到setup.py文件
    3. 找到long_description=Path("README.md").read_text(),这一行,然后 注释掉这一行:#long_description=Path("README.md").read_text(),
    4. 使用python setup.py install setup.py igramscraper,祝你好运

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-15
      • 2016-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多