Linux/Install/Home.md
... ...
@@ -67,19 +67,19 @@ $ uname -a
67 67
```
68 68
- shutdown コマンドの -h オプションを付けないと、シングルユーザモードになるだけで電源は切れない。
69 69
70
-# pip3 エラー対応 (AttributeError: '_NamespacePath' object has no attribute 'sort')
70
+# pip3 エラー対応<br>(AttributeError: '_NamespacePath' object has no attribute 'sort')
71 71
- python3-pip, python3-setuptools を再インストールする。
72
-```
73
-# dnf erase python3-pip python3-setuptools
74
-# dnf install -y python3-pip python3-setuptools
75
-```
72
+ ```
73
+ # dnf erase python3-pip python3-setuptools
74
+ # dnf install -y python3-pip python3-setuptools
75
+ ```
76 76
- 再インストールで直らない場合は、該当ファイルを修正する。<br>
77
-/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py
78
-```python
79
-#orig_path.sort(key=position_in_sys_path)
80
-#module.__path__[:] = [_normalize_cached(p) for p in orig_path]
81
-orig_path_t = list(orig_path)
82
-orig_path_t.sort(key=position_in_sys_path)
83
-module.__path__[:] = [_normalize_cached(p) for p in orig_path_t]
84
-```
77
+/usr/lib/python3.6/site-packages/pip/\_vendor/pkg_resources/\_\_init__.py
78
+ ```python
79
+ #orig_path.sort(key=position_in_sys_path)
80
+ #module.__path__[:] = [_normalize_cached(p) for p in orig_path]
81
+ orig_path_t = list(orig_path)
82
+ orig_path_t.sort(key=position_in_sys_path)
83
+ module.__path__[:] = [_normalize_cached(p) for p in orig_path_t]
84
+ ```
85 85
- [python - pip3 error - '_NamespacePath' object has no attribute 'sort' - Stack Overflow](https://stackoverflow.com/questions/47955397/)