Giter Site home page Giter Site logo

error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120 about softras HOT 1 OPEN

Echo-jyt avatar Echo-jyt commented on June 2, 2024
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120

from softras.

Comments (1)

bhavaygrg avatar bhavaygrg commented on June 2, 2024

It looks like you are encountering linker errors while trying to install a Python package that involves compiling and linking CUDA code. The error messages you provided indicate that there are unresolved external symbols related to TLS (Thread Local Storage) offsets and indices.

Here are a few steps you can try to troubleshoot and resolve this issue:

Update Visual Studio: The error messages mention Microsoft Visual Studio 2022. Make sure you have the necessary components installed and that Visual Studio is up to date. Sometimes, updating Visual Studio to the latest version can resolve compatibility issues.

Check CUDA Compatibility: Ensure that the CUDA version you have installed is compatible with your current setup and the package you are trying to install. Different versions of CUDA may have compatibility issues with certain compiler versions.

Check Compiler Version: The package might be built with a specific version of the MSVC (Microsoft Visual C++) compiler. Make sure that your Visual Studio installation includes the required compiler version. If necessary, you might need to adjust your environment variables or project settings to use the correct compiler.

Check Package Requirements: Double-check the documentation of the package you're trying to install. It might have specific requirements or dependencies that need to be satisfied. Ensure that you have all the necessary dependencies installed, including CUDA, and that they are correctly configured.

Clean and Rebuild: Sometimes, issues can arise due to cached build artifacts. Try cleaning the build artifacts and then rebuilding the package. You can do this by deleting the build directory in your project folder and then running the installation command again.

Contact Package Maintainers: If none of the above steps work, consider reaching out to the maintainers of the package for help. They might be able to provide specific guidance for resolving this issue in the context of their package.

Remember that troubleshooting compiler and linker issues can sometimes be complex and may require careful debugging and investigation. It's also a good practice to search for similar issues reported by other users in forums or issue trackers related to the package you are trying to install, as you might find valuable insights and solutions from others who have encountered similar problems. I once faced a same issue when I was trying to install stable diffusion locally on my system. Updating the microsoft c++ did the trick for me. Hope this helps , Good Luck!

from softras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.