Quick Repair: Python elevates the ImportError: No component called 'types-enum34'
when it can not locate the collection types-enum34
One of the most regular resource of this mistake is that you have not mounted types-enum34
clearly with pip mount types-enum34
Additionally, you might have various Python variations on your computer system, and also types-enum34
is not mounted for the specific variation you’re utilizing.
Particularly, you can attempt any one of the adhering to commands, relying on your concrete setting and also setup demands:
If you have just one variation of Python mounted:pip mount types-enum34
If you have Python 3 (and also, potentially, various other variations) mounted:pip3 mount
If you do not have PIP or it does not function
types-enum34
python -m pip mount
If you have Linux and also you require to deal with authorizations (any kind of one):python3 -m pip mount
types-enum34
types-enum34
sudo pip3 mount
If you have Linux with properpip3 mount
types-enum34
-- customer
types-enum34
sudo proper mount
If you have Windows and also you have actually established the
types-enum34
py
pen namespy -m pip mount
If you have Anaconda
types-enum34
conda mount -c anaconda
If you have Jupyter Note Pad
types-enum34
! pip mount
types-enum34
! pip3 mount
types-enum34
Trouble Formula
You have actually simply found out about the outstanding abilities of the types-enum34
collection and also you intend to attempt it out, so you begin your code with the adhering to declaration:
import types-enum34
This is meant to import the types-enum34 collection right into your ( online) setting Nonetheless, it just tosses the following ImportError: No component called types-enum34
:
>>> > > > import types-enum34. Traceback (latest telephone call last):. Submit "<< pyshell # 6>>", line 1, in << component>>. import types-enum34. ModuleNotFoundError: No component called 'types-enum34'
Remedy Concept 1: Mount Collection types-enum34
One of the most likely factor is that Python does not supply types-enum34
in its conventional collection. You require to mount it initially!
Prior to having the ability to import the types-enum34
component, you require to mount it utilizing Python’s plan supervisor pip
Ensure pip is mounted on your maker.
To repair this mistake, you can run the adhering to command in your Windows covering:
$ pip mount types-enum34
This easy command installs types-enum34
in your online setting on Windows, Linux, and also MacOS. It thinks that your pip
variation is upgraded. If it isn’t, make use of the adhering to 2 commands in your terminal, command line, or covering (there’s no injury in doing it anyways):
$ python -m pip mount-- upgrade pip. $ pip mount types-enum34
Note: Do not duplicate and also paste the $
icon. This is simply to show that you run it in your shell/terminal/command line.
Remedy Concept 2: Repair the Course
The mistake may continue also after you have actually mounted the types-enum34
collection. This most likely occurs since pip
is mounted however does not live in the course you can make use of. Although pip
might be mounted on your system the manuscript is not able to find it. As a result, it is not able to mount the collection utilizing pip
in the right course.
To deal with the issue with the course in Windows adhere to the actions offered next off.
Action 1: Open up the folder where you mounted Python by opening up the command punctual and also keying where python

Action 2: When you have actually opened up the Python
folder, surf and also open up the Manuscripts
folder and also duplicate its area. Additionally confirm that the folder consists of the pip
documents.

Action 3: Currently open up the Manuscripts
directory site in the command punctual utilizing the cd
command and also the area that you duplicated formerly.

Action 4: Currently mount the collection utilizing pip mount types-enum34
command. Right here’s a similar instance:

After having actually adhered to the above actions, implement our manuscript once more. And also you must obtain the wanted result.
Various Other Remedy Concepts
- The
ModuleNotFoundError
might show up because of family member imports You can discover whatever regarding family member imports and also exactly how to develop your very own component in this write-up - You might have blended Python and also pip variations on your maker. In this instance, to mount
types-enum34
for Python 3, you might intend to attemptpython3 -m pip mount types-enum34
or perhapspip3 mount types-enum34
as opposed topip mount types-enum34
- If you encounter this concern server-side, you might intend to attempt the command
pip mount-- customer types-enum34
- If you’re utilizing Ubuntu, you might intend to attempt this command:
sudo proper mount types-enum34
- You can additionally have a look at this write-up to read more regarding feasible issues that might result in a mistake when importing a collection.
Comprehending the “import” Declaration
import types-enum34
In Python, the import
declaration offers 2 major functions:
- Browse the component by its name, tons it, and also initialize it.
- Specify a name in the regional namespace within the range of the
import
declaration. This regional name is after that utilized to reference the accessed component throughout the code.
What’s the Distinction In Between ImportError and also ModuleNotFoundError?
What’s the distinction in between ImportError
and also ModuleNotFoundError
?
Python specifies an mistake pecking order, so some mistake courses acquire from various other mistake courses. In our instance, the ModuleNotFoundError
is a subdivision of the ImportError
course.
You can see this in this screenshot from the docs:

You can additionally inspect this partnership utilizing the issubclass()
integrated feature:
>>> > > > issubclass( ModuleNotFoundError, ImportError). Real
Particularly, Python elevates the ModuleNotFoundError
if the component (e.g., types-enum34
) can not be discovered. If it can be discovered, there might be an issue filling the component or some certain documents within the component. In those situations, Python would certainly elevate an ImportError
If an import declaration can not import a component, it elevates an ImportError
This might take place due to a defective setup or a void course. In Python 3.6 or more recent, this will generally elevate a ModuleNotFoundError
Associated Video Clips
The adhering to video clip reveals you exactly how to settle the ImportError
:
The adhering to video clip reveals you exactly how to import a feature from an additional folder— doing it the upside-down commonly causes the ModuleNotFoundError
:
Exactly How to Repair “ModuleNotFoundError: No component called ‘types-enum34 ′” in PyCharm
If you develop a brand-new Python task in PyCharm and also attempt to import the types-enum34
collection, it’ll elevate the adhering to mistake message:
Traceback (latest telephone call last):. Submit "C:/ Individuals/ .../ main.py", line 1, in << component>>. import types-enum34. ModuleNotFoundError: No component called 'types-enum34'. Refine do with leave code 1
The factor is that each PyCharm task, per default, produces a online setting in which you can mount customized Python components. Yet the online setting is originally vacant– also if you have actually currently mounted types-enum34
on your computer system!
Right here’s a screenshot exhibiting this for the pandas
collection. It’ll look comparable for types-enum34

The solution is easy: Make use of the PyCharm setup tooltips to mount Pandas in your online setting– 2 clicks and also you’re great to go!
Initially, right-click on the pandas
message in your editor:

2nd, click “ Program Context Activities
” in your context food selection. In the brand-new food selection that occurs, click “Mount Pandas” and also wait on PyCharm to end up the setup.
The code will certainly follow your setup finishes efficiently.
As an option, you can additionally open up the Incurable
device near the bottom and also kind:
$ pip mount types-enum34
If this does not function, you might intend to establish the Python interpreter to an additional variation utilizing the adhering to tutorial: https://www.jetbrains.com/help/pycharm/2016.1/configuring-python-interpreter-for-a-project.html
You can additionally by hand mount a brand-new collection such as types-enum34
in PyCharm utilizing the adhering to treatment:
- Open
Submit > > Setups > > Task
from the PyCharm food selection. - Select your present task.
- Click the
Python Interpreter
tab within your task tab. - Click the little
+
icon to include a brand-new collection to the task. - Currently enter the collection to be mounted, in your instance Pandas, and also click
Install Bundle
- Wait on the setup to end and also shut all popup home windows.
Right here’s a similar instance:

Right here’s a complete overview on exactly how to mount a collection on PyCharm.

While functioning as a scientist in dispersed systems, Dr. Christian Mayer discovered his love for educating computer technology pupils.
To assist pupils get to greater degrees of Python success, he established the programs education and learning web site Finxter.com that has actually educated rapid abilities to countless programmers worldwide. He’s the writer of the very popular programs publications Python One-Liners (NoStarch 2020), The Art of Clean Code (NoStarch 2022), and also Guide of Dashboard (NoStarch 2022). Chris additionally coauthored the Coffee Break Python collection of self-published publications. He’s a computer technology fanatic, consultant, and also proprietor of among the leading 10 biggest Python blog sites worldwide.
His enthusiasms are creating, analysis, and also coding. Yet his best enthusiasm is to offer striving programmers via Finxter and also assist them to enhance their abilities. You can join his cost-free e-mail academy right here.