<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>qiskit</title>
	<atom:link href="https://techgrowup.net/tag/qiskit/feed/" rel="self" type="application/rss+xml" />
	<link>https://techgrowup.net</link>
	<description>エンジニアを強くする</description>
	<lastBuildDate>Mon, 10 Jan 2022 12:51:24 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://techgrowup.net/wp-content/uploads/2021/05/hp-icon-150x150.png</url>
	<title>qiskit</title>
	<link>https://techgrowup.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>qiskitを入れようとしたら、「Failed to build retworkx」が出たときの原因と解決法</title>
		<link>https://techgrowup.net/problem-install-qiskit-python3-10/</link>
					<comments>https://techgrowup.net/problem-install-qiskit-python3-10/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[techgrowup]]></dc:creator>
		<pubDate>Mon, 10 Jan 2022 12:51:23 +0000</pubDate>
				<category><![CDATA[エラー集]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[qiskit]]></category>
		<category><![CDATA[量子コンピューター]]></category>
		<guid isPermaLink="false">https://techgrowup.net/?p=1457</guid>

					<description><![CDATA[出たエラー 　pythonでqiskitというライブラリを入れようとしたところ、下記のエラーが出ました。 解決した方法 　私はAnacondaを使ってpython環境構築していましたが特にこれが関係しているわけではありま [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">出たエラー</h2>



<p class="wp-block-paragraph">　pythonで<a rel="noopener" target="_blank" href="https://qiskit.org/">qiskit<span class="fa fa-external-link external-icon anchor-icon"></span></a>というライブラリを入れようとしたところ、下記のエラーが出ました。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box">
<p class="wp-block-paragraph">ERROR: Command errored out with exit status 1:<br>command: /Users/daichimizuno/opt/anaconda3/envs/qiskit_environment/bin/python /Users/daichimizuno/opt/anaconda3/envs/qiskit_environment/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/9h/fsmw573j6vv6ltnsvdjxwjrr0000gn/T/tmp2golous5<br>cwd: /private/var/folders/9h/fsmw573j6vv6ltnsvdjxwjrr0000gn/T/pip-install-misue_j9/retworkx_f431d86c28424aef88a23bb80b77e328<br>Complete output (25 lines):<br>running bdist_wheel<br>running build<br>running build_py<br>creating build<br>creating build/lib.macosx-10.9-x86_64-3.10<br>creating build/lib.macosx-10.9-x86_64-3.10/retworkx<br>copying retworkx/<strong>init</strong>.py -&gt; build/lib.macosx-10.9-x86_64-3.10/retworkx<br>creating build/lib.macosx-10.9-x86_64-3.10/retworkx/visualization<br>copying retworkx/visualization/matplotlib.py -&gt; build/lib.macosx-10.9-x86_64-3.10/retworkx/visualization<br>copying retworkx/visualization/graphviz.py -&gt; build/lib.macosx-10.9-x86_64-3.10/retworkx/visualization<br>copying retworkx/visualization/<strong>init</strong>.py -&gt; build/lib.macosx-10.9-x86_64-3.10/retworkx/visualization<br>running egg_info<br>writing manifest file &#8216;retworkx.egg-info/SOURCES.txt&#8217;<br>running build_ext<br>error: can&#8217;t find Rust compiler</p>



<p class="wp-block-paragraph">If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.</p>



<p class="wp-block-paragraph">To update pip, run:</p>



<pre class="wp-block-code"><code>  pip install --upgrade pip</code></pre>



<p class="wp-block-paragraph">and then retry package installation.</p>



<p class="wp-block-paragraph">If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.</p>



<hr class="wp-block-separator"/>



<p class="wp-block-paragraph">ERROR: Failed building wheel for retworkx<br>Failed to build retworkx<br>ERROR: Could not build wheels for retworkx, which is required to install pyproject.toml-based projects</p>
</div>



<h2 class="wp-block-heading">解決した方法</h2>



<p class="wp-block-paragraph">　私はAnacondaを使ってpython環境構築していましたが特にこれが関係しているわけではありませんでした。また、エラー中にpipバージョンの記載もありましたが、結果これも関係なかったです。</p>



<p class="wp-block-paragraph">　原因はpython3.10を利用していたことで、2022/01/10時点ではqiskitはpython3.10は対応していないので、python3.9での環境を作りましょう。Anacondaでの作り方は下記です。「qiskit_environment」の部分は好きな名前を入れて大丈夫です。</p>



<pre class="wp-block-code"><code>conda create -n qiskit_environment python=3.9</code></pre>



<p class="wp-block-paragraph">以上です。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techgrowup.net/problem-install-qiskit-python3-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
