日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python2.7安装setuptools-36.6.0报ascii' codec can't decode byte 0xce in position 7问题

發布時間:2024/4/14 python 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python2.7安装setuptools-36.6.0报ascii' codec can't decode byte 0xce in position 7问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

解決辦法1

原文鏈接:http://blog.csdn.net/all_over_servlet/article/details/45112221

修改編碼為gbk,修改D:\Python27\Lib\ntpath.py(位置由個人python安裝目錄決定)文件中的def join(path, *paths)函數,在函數內第一行加入

reload(sys) sys.setdefaultencoding('gbk')

即:

# Join two (or more) paths. def join(path, *paths): """Join two or more pathname components, inserting "\\" as needed.""" reload(sys) sys.setdefaultencoding('gbk') result_drive, result_path = splitdrive(path) for p in paths: p_drive, p_path = splitdrive(p) if p_path and p_path[0] in '\\/': # Second path is absolute if p_drive or not result_drive: result_drive = p_drive result_path = p_path continue elif p_drive and p_drive != result_drive: if p_drive.lower() != result_drive.lower(): # Different drives => ignore the first path entirely result_drive = p_drive result_path = p_path continue # Same drive in different case result_drive = p_drive # Second path is relative to the first if result_path and result_path[-1] not in '\\/': result_path = result_path + '\\' result_path = result_path + p_path ## add separator between UNC and non-absolute path if (result_path and result_path[0] not in '\\/' and result_drive and result_drive[-1:] != ':'): return result_drive + sep + result_path return result_drive + result_path

?

?

解決辦法2:(PS:這是網上最多解答的帖子,不一定能夠解決,樓主自己是依照解決方法1解決了問題)

?

注意Python語法縮進原則。

超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生

總結

以上是生活随笔為你收集整理的python2.7安装setuptools-36.6.0报ascii' codec can't decode byte 0xce in position 7问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。