Unable to use minted [closed]
up vote
0
down vote
favorite
I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used
usepackage[outputdir=build]{minted}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.
I want to use minted
package in my document.
After doing the following
Install Python 3.7.1 from Python's website (I also ticked the
PATH
during the installation)Create
Scripts
folder inC:Python 3.7.1
Install
Pygments
bypip install Pygments
command by Command Prompt running as administrator
Add
--shell-escape
to mypdfLaTeX
compiling command in TeXmaker
I think that everything is done, however, I still can't compile the code using minted
package. Error:
! Package minted Error: You must have `pygmentize' installed to use this package.
After searching, I know that the cause is that pygments
was not correctly added to the PATH
. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(
Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts
. How can I do this?
I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.
minted pygments
closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
0
down vote
favorite
I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used
usepackage[outputdir=build]{minted}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.
I want to use minted
package in my document.
After doing the following
Install Python 3.7.1 from Python's website (I also ticked the
PATH
during the installation)Create
Scripts
folder inC:Python 3.7.1
Install
Pygments
bypip install Pygments
command by Command Prompt running as administrator
Add
--shell-escape
to mypdfLaTeX
compiling command in TeXmaker
I think that everything is done, however, I still can't compile the code using minted
package. Error:
! Package minted Error: You must have `pygmentize' installed to use this package.
After searching, I know that the cause is that pygments
was not correctly added to the PATH
. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(
Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts
. How can I do this?
I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.
minted pygments
closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2
What do you get back when you typeecho %PATH%
in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives inC:Python37
without spaces and it works. That doesn't say anything, but might be something to keep in mind.
– moewe
Nov 20 at 16:18
1
If you go to a command prompt (see howtogeek.com/235101/…) and typepygmentize
(followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
– Marijn
Nov 20 at 16:18
3
It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36
@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58
Now it is best to delete it. What you can do by clicking on thedelete
button
– AndréC
Nov 21 at 5:16
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used
usepackage[outputdir=build]{minted}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.
I want to use minted
package in my document.
After doing the following
Install Python 3.7.1 from Python's website (I also ticked the
PATH
during the installation)Create
Scripts
folder inC:Python 3.7.1
Install
Pygments
bypip install Pygments
command by Command Prompt running as administrator
Add
--shell-escape
to mypdfLaTeX
compiling command in TeXmaker
I think that everything is done, however, I still can't compile the code using minted
package. Error:
! Package minted Error: You must have `pygmentize' installed to use this package.
After searching, I know that the cause is that pygments
was not correctly added to the PATH
. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(
Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts
. How can I do this?
I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.
minted pygments
I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used
usepackage[outputdir=build]{minted}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.
I want to use minted
package in my document.
After doing the following
Install Python 3.7.1 from Python's website (I also ticked the
PATH
during the installation)Create
Scripts
folder inC:Python 3.7.1
Install
Pygments
bypip install Pygments
command by Command Prompt running as administrator
Add
--shell-escape
to mypdfLaTeX
compiling command in TeXmaker
I think that everything is done, however, I still can't compile the code using minted
package. Error:
! Package minted Error: You must have `pygmentize' installed to use this package.
After searching, I know that the cause is that pygments
was not correctly added to the PATH
. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(
Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts
. How can I do this?
I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.
minted pygments
minted pygments
edited Nov 20 at 17:25
asked Nov 20 at 15:53
Dũng Vũ
1,12920
1,12920
closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2
What do you get back when you typeecho %PATH%
in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives inC:Python37
without spaces and it works. That doesn't say anything, but might be something to keep in mind.
– moewe
Nov 20 at 16:18
1
If you go to a command prompt (see howtogeek.com/235101/…) and typepygmentize
(followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
– Marijn
Nov 20 at 16:18
3
It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36
@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58
Now it is best to delete it. What you can do by clicking on thedelete
button
– AndréC
Nov 21 at 5:16
add a comment |
2
What do you get back when you typeecho %PATH%
in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives inC:Python37
without spaces and it works. That doesn't say anything, but might be something to keep in mind.
– moewe
Nov 20 at 16:18
1
If you go to a command prompt (see howtogeek.com/235101/…) and typepygmentize
(followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
– Marijn
Nov 20 at 16:18
3
It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36
@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58
Now it is best to delete it. What you can do by clicking on thedelete
button
– AndréC
Nov 21 at 5:16
2
2
What do you get back when you type
echo %PATH%
in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37
without spaces and it works. That doesn't say anything, but might be something to keep in mind.– moewe
Nov 20 at 16:18
What do you get back when you type
echo %PATH%
in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37
without spaces and it works. That doesn't say anything, but might be something to keep in mind.– moewe
Nov 20 at 16:18
1
1
If you go to a command prompt (see howtogeek.com/235101/…) and type
pygmentize
(followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)– Marijn
Nov 20 at 16:18
If you go to a command prompt (see howtogeek.com/235101/…) and type
pygmentize
(followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)– Marijn
Nov 20 at 16:18
3
3
It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36
It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36
@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58
@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58
Now it is best to delete it. What you can do by clicking on the
delete
button– AndréC
Nov 21 at 5:16
Now it is best to delete it. What you can do by clicking on the
delete
button– AndréC
Nov 21 at 5:16
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
2
What do you get back when you type
echo %PATH%
in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives inC:Python37
without spaces and it works. That doesn't say anything, but might be something to keep in mind.– moewe
Nov 20 at 16:18
1
If you go to a command prompt (see howtogeek.com/235101/…) and type
pygmentize
(followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)– Marijn
Nov 20 at 16:18
3
It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36
@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58
Now it is best to delete it. What you can do by clicking on the
delete
button– AndréC
Nov 21 at 5:16