私はこのパッケージを持っています。 CMDで私は[email protected] C:\Users\hp\Documents\scripts
に行く:グローバルPythonパッケージ
[email protected] C:\Users\hp\Documents\scripts
> python
Python 3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import toolzz.printer as t
>>> t.printz()
5
すべてが正常に動作しているが、私は私のスクリプトを追加することができますされているディレクトリを持っているし、私のcmd-> python->インポート私のパッケージを開くことができるようにしたいとやります私は、代わりにこれを取得していないつもりです何:
[email protected] C:\Users\hp
> python
Python 3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import toolzz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'toolzz'
>>>
PS:覚えておいて、私はパスにディレクトリscripts
を追加していると私は
'python2'を実行しようとしましたか? Python 2用のパッケージをインストールしてもPython用にはインストールされません3 –
実際にインストールする必要があります –
'C:\ Users \ hp \ Documents \ scripts'をPythonモジュールの検索パスに追加しますか? –