質問編集履歴
1
追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,4 +2,45 @@
|
|
2
2
|
うまくいきません。
|
3
3
|
現在はwindous10・vagrant・ubuntuという環境で、python3.4がデフォルトの状態です。
|
4
4
|
環境変数など、何か具体的なやり方があるのでしょうか。
|
5
|
-
pyhton3.7のインストールはできています。
|
5
|
+
pyhton3.7のインストールはできています。
|
6
|
+
|
7
|
+
以下のコードでシンボリックリンクを張りなおすやり方にたどり着きましたが、
|
8
|
+
同様にやてってもエラーになります。
|
9
|
+
```linux
|
10
|
+
$ which python
|
11
|
+
/usr/bin/python
|
12
|
+
$ls -l /usr/bin/python
|
13
|
+
/usr/bin/python -> python2.7
|
14
|
+
|
15
|
+
which python3
|
16
|
+
/usr/bin/python3
|
17
|
+
$ ls -l /usr/bin/python3
|
18
|
+
/usr/bin/python3 -> python3.5
|
19
|
+
------
|
20
|
+
mkdir -p $HOME/bin
|
21
|
+
ln -s /usr/bin/python3.6 $HOME/bin/python
|
22
|
+
```↓エラー
|
23
|
+
failed to create symbolic link ‘/home/vagrant/bin/python’: File exists
|
24
|
+
|
25
|
+
わたしの環境は以下のとおりでした。
|
26
|
+
```linaux
|
27
|
+
$ which python
|
28
|
+
/home/vagrant/scraping/bin/python
|
29
|
+
$ ls -l /home/vagrant/scraping/bin/python
|
30
|
+
/home/vagrant/scraping/bin/python -> python3
|
31
|
+
|
32
|
+
$ which python3
|
33
|
+
/home/vagrant/scraping/bin/python3
|
34
|
+
$ ls -l /home/vagrant/scraping/bin/python3
|
35
|
+
/home/vagrant/scraping/bin/python3 -> /usr/bin/python3
|
36
|
+
|
37
|
+
★
|
38
|
+
$ which python3.7
|
39
|
+
/usr/local/bin/python3.7
|
40
|
+
$ ls -l /usr/local/bin/python3.7
|
41
|
+
/usr/local/bin/python3.7
|
42
|
+
```
|
43
|
+
★の確認コードでpython3.7にリンクがないことわかったのですが、その後、シンボリックリンクをつくることができません。
|
44
|
+
どのようなコードを書くとよいのでしょう。
|
45
|
+
それとも、パスにあるvagrantとlocalの違いが原因で、仮想環境からpython3.7への
|
46
|
+
アクセスはできないのでしょうか。
|