Installing Third-Party Modules

已回答

Hi,

I would like to install the Third-Party Module "send2trash" from https://pypi.python.org/ . When I try to add this url to the custom repositories via "PyCharm-Preferences-Plugins-Browse repositories...-Manage repositories, I get an error telling me that this repository is empty.

What do I wrong?

Maybe it is the wrong url to the pypi-repository. If that is the case, has anybody the right url?

Or, do I have to install the plugin manually via "sudo pip3 install send2trash"?

 Many thanks for any help.

I use PyCharm 2018.1 (Community Edition), Build #PC-181.4203.547, built on March 26, 2018, JRE: 1.8.0_152-release-1136-b20 x86_64, JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o on macOS 10.13.3

Best regards HaWe51

0

You don't need to configure repositories for pypi.python.org, it's already done by default so you can install send2trash right away from the UI. The correct URL meanwhile is https://pypi.python.org/simple

0
Avatar
Permanently deleted user

Hi Pavel,

many thanks for your answer but if try to install the Plugin via the Plugins-Dialog in PyCharm Preferences, the plugin is not found if I search for it in the repositories .

when I try to import the module for instance in the Python Console I get this error message:

>>> import send2trash
Traceback (most recent call last):
   File "<input>", line 1, in <module>
   File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
     module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'send2trash'

What do I wrong?

Best regards

0

Ah, I see, "plugins" and "packages" are different things - plugins are some additions to PyCharm functionality (bash support, markdown preview, and so on), packages - Python language packages, in general, available on PyPI. You need to use UI in Settings | Project ... | Project Interpreter to install new packages:

0
Avatar
Permanently deleted user

Hi Pavel,

Yes!! That did it.

Many thanks for your great support.

0

Mr. Pavel Karateev

Thanks a lot, i made it. :)

0

请先登录再写评论。