pythoのアップデートをしたいのですがこのエラーメッセージはどういう意味でしょうか?
あと、もう1つ質問なんですがpython2.7という表記なのに、下のターミナルからpython起動した時のコードではpython3.5.2となってるのはなぜですか?
conda install python=3.7 Fetching package metadata ........... Solving package specifications: . UnsatisfiableError: The following specifications were found to be in conflict: - _license -> python 2.7* -> openssl 1.0.1* - _license -> python 2.7* -> readline 6.2* - _license -> python 2.7* -> tk 8.5* - python 3.7* Use "conda info <package>" to see the dependencies for each package.
$ python Python 3.5.2 |Anaconda 4.2.0 (x86_64)| (default, Jul 2 2016, 17:52:12) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
まず環境を書きましょうd^^ ・・・Linuxだと思いますがw
で、 anaconda/bin にパス通っていますか?
通っているなら、python3 --versionで動きませんか?
linuxです。
初心者なものでいまいちよく分からないのですが、通ってるかどうかの確認は
printenv anaconda/bin でよろしいのでしょうか?
また,python3 --verisonと打つと
Python 3.5.2 :: Anaconda 4.2.0 (x86_64)
と出てきます。
説明が下手で申し訳ありません。
"echo $PATH"とやって表示されたものに"anaconda/bin"が含まれているかどうかです。
うちの環境でのインストール状況は以下のようになります。
usr ~/Project/test/teratail % ~/anaconda3/bin/python3 -V
Python 3.7.3
usr ~/Project/test/teratail % python3 -V
Python 3.6.7
usr ~/Project/test/teratail % python -V
Python 2.7.15rc1
usr ~/Project/test/teratail %
~/.pyenv/versions/anaconda3-4.2.0/bin/:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Users/aiueo/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
このようになるので一応"anaconda3/bin"は含まれていますが"anaconda/bin"でなきゃダメなんでしょうか?
/.pyenv/versions/anaconda3-4.2.0/bin バージョン切り替えを使ってるようですが?
こちらを参考に→https://qiita.com/koooooo/items/b21d87ffe2b56d0c589b
"python3 --verison"なんてパラメータ無いのでおかしいと思った・・・
> "python3 --verison"なんてパラメータ
ありませんか?
`python3 -H` と `python3 --help` が同じように、 `Python3 -V` と同じ筈ですが。
あなたの回答
tips
プレビュー